Skip to content

Commit

Permalink
updated workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
shitwolfymakes committed Mar 22, 2022
1 parent da59125 commit 0afb00b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/publish-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ env:
REGISTRY: ghcr.io
# use DOCKERHUB_USERNAME as the name maybe different from the github username
IMAGE_NAME: ${{ secrets.DOCKERHUB_USERNAME }}/${{ github.event.repository.name }}
TAG: latest
TAG: ${{ env.GITHUB_REF_NAME }}

jobs:
build:
Expand All @@ -29,8 +29,8 @@ jobs:
steps:
-
name: Set tag for non-default branches
if: ${{ env.GITHUB_REF_NAME }} != main || ${{ env.GITHUB_REF_NAME }} != v2_devel
run: echo "TAG=${{ env.GITHUB_REF_NAME }}" >> $GITHUB_ENV
if: ${{ env.GITHUB_REF_NAME == main || env.GITHUB_REF_NAME == v2_devel }}
run: echo "TAG=latest" >> $GITHUB_ENV

-
name: Checkout repository
Expand Down

0 comments on commit 0afb00b

Please sign in to comment.