Skip to content

Commit 090cfbc

Browse files
committed
Correct metadata-action tags which use default branch as latest
1 parent 7831be4 commit 090cfbc

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

.github/workflows/docker-publish.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: Create and publish a Docker image
22

33
on:
44
push:
5-
branches: ['bullseye','buster','master']
5+
branches: ['bullseye','buster']
66
workflow_dispatch:
77

88
jobs:
@@ -36,7 +36,12 @@ jobs:
3636
images: |
3737
${{ github.repository }}
3838
ghcr.io/${{ github.repository }}
39-
39+
tags: |
40+
type=schedule
41+
type=ref,event=branch
42+
type=ref,event=tag
43+
type=ref,event=pr
44+
type=raw,value=latest,enable={{is_default_branch}}
4045
4146
- name: Build and push Docker image
4247
uses: docker/build-push-action@v3

0 commit comments

Comments
 (0)