Skip to content

Commit

Permalink
ci: change how we find tags to pass to stacker-build-push-action
Browse files Browse the repository at this point in the history
We are getting an error about tags being empty.  The intertubes,
for instance
https://stackoverflow.com/questions/58177786/get-the-current-pushed-tag-in-github-actions,
suggests that that actually cna't work.  Use another suggested way.

Signed-off-by: Serge Hallyn <[email protected]>
  • Loading branch information
hallyn committed Nov 14, 2023
1 parent 2fde247 commit 410d864
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,8 @@ jobs:
mosctl-linux-amd64
trust-linux-amd64
- name: Set env
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
- name: publish provision and install layer
if: startsWith(github.ref, 'refs/tags/')
uses: project-stacker/stacker-build-push-action@main
Expand All @@ -78,7 +80,7 @@ jobs:
ROOTFS_VERSION=v0.0.17.231018
TOPDIR=${{ env.TOPDIR }}
url: docker://zothub.io/machine/bootstrap
tags: ${{ github.event.release.tag_name }}
tags: ${{ env.RELEASE_VERSION }}
username: ${{ secrets.ZOTHUB_USERNAME }}
password: ${{ secrets.ZOTHUB_PASSWORD }}

Expand Down

0 comments on commit 410d864

Please sign in to comment.