Skip to content

Commit

Permalink
attempt 5
Browse files Browse the repository at this point in the history
  • Loading branch information
treeder committed Feb 20, 2024
1 parent 575c1d7 commit 5474750
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ jobs:
make docker
- name: release
id: release
env:
X: Y
env:
Expand All @@ -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
Expand All @@ -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

0 comments on commit 5474750

Please sign in to comment.