Skip to content

fix docker publish workflow to use the release zip for the tag being built#126

Open
mooncitydev wants to merge 1 commit into
jup-ag:mainfrom
mooncitydev:fix/publish-workflow-match-release-tag
Open

fix docker publish workflow to use the release zip for the tag being built#126
mooncitydev wants to merge 1 commit into
jup-ag:mainfrom
mooncitydev:fix/publish-workflow-match-release-tag

Conversation

@mooncitydev

Copy link
Copy Markdown

hey team, was looking at the publish workflow and noticed something off.

when you push a tag, the workflow tags the docker image with that tag (via metadata-action), but the step that downloads the binary zip uses version: latest instead of the tag that triggered the run. so if you ever rebuild an older tag, or releases get created out of order, you can end up with e.g. ghcr.io/.../metis-binary:v7.0.10 that actually contains the v7.0.14 binary inside. pretty easy to miss until someone debugs a version mismatch in prod.

this changes it to tags/${{ github.ref_name }} so the zip always matches the tag push. also pinned fetch-gh-release-asset to 1.1.2 instead of @master.

cheers

the workflow runs on tag push but was downloading the latest release
asset, so a rebuild of an older tag could ship a newer binary inside an
older image tag.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant