Skip to content

Commit

Permalink
Use intermediate environment var for docker versioning (#20)
Browse files Browse the repository at this point in the history
  • Loading branch information
Evertras authored Jan 1, 2023
1 parent e8ba557 commit b8c77b5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/docker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,10 @@ jobs:
with:
username: evertras
password: ${{ secrets.DOCKER_API_KEY }}
- name: Set environment variables
run: echo "EVERTRAS_PUBLISHED_VERSION=${GITHUB_REF##*/}" >> $GITHUB_ENV
- name: Build and push
uses: docker/build-push-action@v3
with:
push: true
tags: evertras/cynomys:${GITHUB_REF##*/},evertras/cynomys:latest
tags: evertras/cynomys:${{ env.EVERTRAS_PUBLISHED_VERSION }},evertras/cynomys:latest

0 comments on commit b8c77b5

Please sign in to comment.