Skip to content

Commit

Permalink
Move ternary env tag to job
Browse files Browse the repository at this point in the history
  • Loading branch information
codebarista committed Feb 19, 2024
1 parent 2c19e85 commit 4c6a479
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ env:
BRANCH_NAME: ${{ github.base_ref || github.ref_name }}
DOCKER_USERNAME: ${{ github.repository_owner }}
IMAGE_NAME: octane
TAG: ${{ env.BRANCH_NAME == 'main' && 'latest' || env.BRANCH_NAME }}
on:
push:
branches: [ main, swoole, franken ]
Expand All @@ -27,6 +26,6 @@ jobs:
uses: docker/build-push-action@v5
with:
platforms: linux/amd64,linux/arm64
tags: ${{ env.DOCKER_USERNAME }}/${{ env.IMAGE_NAME }}:${{ env.TAG }}
tags: ${{ env.DOCKER_USERNAME }}/${{ env.IMAGE_NAME }}:${{ env.BRANCH_NAME == 'main' && 'latest' || env.BRANCH_NAME }}
context: src
push: true

0 comments on commit 4c6a479

Please sign in to comment.