-
|
Hey, What I have so far is the following: sources:
github:
kind: githubRelease
spec:
token: "{{ requiredEnv .github.token }}"
owner: org
repository: repo
versionFilter:
kind: latestThis seems to work, but then I am stuck on the following:
My thought is to use a target for that (for the download), but I gave up googling — I can't find any examples. I think I would also like to use the version to check in the remote registry before I continue. But maybe I am abusing updatecli for something it was not meant to be used for. Any thoughts? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 8 replies
-
|
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 |
Beta Was this translation helpful? Give feedback.
-
|
Another option would be to leverage the shell plugin with something like The downside of the shell script, is that you may need more tools than updatecli, depending on what you execute. If that approach interest you more, I could prioritize some documentation work |
Beta Was this translation helpful? Give feedback.
Hi @till, you can use a second source of type "file" on short term. Something like: