From 54747502d82afaa5c014e7291713553c564d6bfe Mon Sep 17 00:00:00 2001 From: Travis Reeder Date: Tue, 20 Feb 2024 19:43:06 +0000 Subject: [PATCH] attempt 5 --- .github/workflows/release.yaml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index aee8dcf..2d8a8cd 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -25,6 +25,7 @@ jobs: make docker - name: release + id: release env: X: Y env: @@ -42,6 +43,7 @@ jobs: wget -O - https://raw.githubusercontent.com/treeder/bump/master/gitbump.sh | bash version=$(git tag --sort=-refname --list "v[0-9]*" | head -n 1) echo "new version $version" + echo "VERSION=$version" >> "$GITHUB_OUTPUT" docker tag $IMAGE:latest $IMAGE:$version docker tag $IMAGE:latest ghcr.io/$IMAGE:$version @@ -60,7 +62,11 @@ jobs: password: ${{secrets.GITHUB_TOKEN}} - name: 'Push image to GitHub Container Registry' + env: + IMAGE: treeder/bump + VERSION: ${{ steps.release.outputs.VERSION }} run: | + echo "VERSION2=$VERSION" docker push ghcr.io/$IMAGE:latest - docker push ghcr.io/$IMAGE:$version + docker push ghcr.io/$IMAGE:$VERSION