Skip to content

Commit

Permalink
update env store of tag
Browse files Browse the repository at this point in the history
  • Loading branch information
Nina Bernick committed Jul 26, 2024
1 parent 0b0de7a commit 81ead99
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/build-and-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,9 @@ jobs:
id: docker_tag
run: |
if [ "${{ github.ref }}" == "refs/heads/main" ]; then
echo "::set-output name=tag::${{ steps.release.outputs.version }}"
echo "tag=${{ steps.release.outputs.version }}" >> $GITHUB_ENV
else
echo "::set-output name=tag::latest"
echo "tag=latest" >> $GITHUB_ENV
fi
- name: Build and push Docker image
Expand All @@ -62,4 +62,4 @@ jobs:
context: .
push: true
tags: |
ghcr.io/${{ github.repository }}-test:${{ steps.docker_tag.outputs.version }}
ghcr.io/${{ github.repository }}-test:${{ env.tag }}

0 comments on commit 81ead99

Please sign in to comment.