GitHub-release resource always emits the latest version. I want to get a specific tag with the version specified in a file.
Below did not fetch the version - github-release - pinned version tag: path/to/the/file/with/version not found
- get: github-release
version:
tag: path/to/the/file/with/version
params:
include_source_zip: true
I was able to get the older version by hardcoding the version
- get: github-release
version: { tag : 'v1.0.0' }
params:
include_source_zip: true
and fly check-resource -r pipeline/github-release-resource --from tag:v1.0.0
This is a concourse configuration. Basically, as stated here, you can't really change this on runtime unless you reset the pipeline:
Also, the command fly check-resource ... is useful in order to verify the version actually exists.