Skip to content

Commit

Permalink
use GITHUB_ENV for docker tag
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinPriebe committed Feb 27, 2024
1 parent e63c40e commit 3cf2331
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@ jobs:

steps:
- uses: actions/checkout@v3
- uses: nimblehq/branch-tag-action@v1
id: extract
- name: Set env
run: echo "GIT_TAG=`echo $(git describe --tags --abbrev=0)`" >> $GITHUB_ENV
- uses: mr-smithers-excellent/docker-build-push@v3
name: Build & push Docker image
with:
image: conplementag/vsts-agent
tags: ${{ env.BRANCH_TAG }}, latest
tags: ${{ env.GITHUB_ENV }}, latest
registry: docker.io
dockerfile: Dockerfile
username: ${{ secrets.DOCKER_USERNAME }}
Expand Down

0 comments on commit 3cf2331

Please sign in to comment.