Skip to content
Discussion options

You must be logged in to vote

Hi @till, you can use a second source of type "file" on short term. Something like:

name: download file from GH release

sources:
  latestHadolintVersion:
    kind: githubrelease
    spec:
      token: "{{ requiredEnv .github.token }}"
      owner: hadolint
      repository: hadolint
  getHadolintLinuxArm:
    kind: file
    dependson:
      - latestHadolintVersion
    spec:
      file: https://github.com/hadolint/hadolint/releases/download/{{ source "latestHadolintVersion" }}/hadolint-Linux-arm64

targets:
  ensureHadolintLinuxArm:
    kind: file
    sourceid: getHadolintLinuxArm
    spec:
      file: ./hadolint

Replies: 2 comments 8 replies

Comment options

You must be logged in to vote
7 replies
@till
Comment options

@dduportal
Comment options

@till
Comment options

@dduportal
Comment options

@till
Comment options

Answer selected by till
Comment options

You must be logged in to vote
1 reply
@till
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants