Skip to content

Commit e3fcd8f

Browse files
chore: use master branch for all references
1 parent 544383f commit e3fcd8f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/docker.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ on:
88
env:
99
REGISTRY: ghcr.io
1010
IMAGE_NAME: ${{ github.repository }}
11-
DEFAULT_BRANCH: ${{ format('refs/heads/{0}', github.event.repository.default_branch) }}
12-
SHOULD_PUSH_IMAGE: ${{ (github.event_name == 'push' && (github.ref == format('refs/heads/{0}', github.event.repository.default_branch) || github.ref == 'refs/heads/dev')) || github.event_name == 'workflow_dispatch' }}
11+
RELEASE_BRANCH: refs/heads/master
12+
SHOULD_PUSH_IMAGE: ${{ (github.event_name == 'push' && (github.ref == 'refs/heads/master' || github.ref == 'refs/heads/dev')) || github.event_name == 'workflow_dispatch' }}
1313
SHOULD_DOWNLOAD_IP2LOCATION_DB: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }}
1414

1515
jobs:
@@ -42,7 +42,7 @@ jobs:
4242
with:
4343
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
4444
tags: |
45-
type=raw,value=latest,enable=${{ github.ref == env.DEFAULT_BRANCH }}
45+
type=raw,value=latest,enable=${{ github.ref == env.RELEASE_BRANCH }}
4646
type=raw,value=edge,enable=${{ github.ref == 'refs/heads/dev' }}
4747
type=sha
4848
@@ -87,7 +87,7 @@ jobs:
8787
with:
8888
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
8989
tags: |
90-
type=raw,value=latest-arm,enable=${{ github.ref == env.DEFAULT_BRANCH }}
90+
type=raw,value=latest-arm,enable=${{ github.ref == env.RELEASE_BRANCH }}
9191
type=raw,value=edge-arm,enable=${{ github.ref == 'refs/heads/dev' }}
9292
type=sha,suffix=-arm
9393

0 commit comments

Comments
 (0)