We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d4e938b commit 095fd5eCopy full SHA for 095fd5e
.github/workflows/docker.yaml
@@ -9,6 +9,7 @@ on:
9
env:
10
REGISTRY: ghcr.io
11
IMAGE_NAME: ${{ github.repository }}
12
+ BRANCH_NAME: ${{ github.head_ref || github.ref_name }}
13
14
jobs:
15
test:
@@ -60,4 +61,4 @@ jobs:
60
61
with:
62
context: .
63
push: true
- tags: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ (env.BRANCH_NAME == 'main' && 'latest') || env.BRANCH_NAME }}
64
+ tags: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ env.BRANCH_NAME == 'main' && 'latest' || env.BRANCH_NAME }}
0 commit comments