Skip to content

Commit 5df484c

Browse files
committed
Update Docker tags
* Keep only branch, pr, and SHA * Add repo tags vX.Y or vX.Y.Z
1 parent edcb8aa commit 5df484c

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

.github/workflows/docker-build.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ on:
1010
- slides/**
1111
- images/**
1212
- .gitignore
13+
tags:
14+
- "v*.*"
15+
- "v*.*.*"
1316
pull_request:
1417
paths-ignore:
1518
- "*.md"
@@ -51,12 +54,10 @@ jobs:
5154
with:
5255
images: ghcr.io/${{ github.repository }}
5356
tags: |
54-
type=raw,value=latest,enable=${{ github.ref == 'refs/heads/main' && matrix.arch == 'amd64' }}
55-
type=ref,event=branch
57+
type=raw,value=latest,enable=${{ github.ref == 'refs/heads/main' }}
5658
type=ref,event=pr
59+
type=ref,event=tag
5760
type=sha,format=short
58-
flavor: |
59-
suffix=-${{ matrix.arch }}
6061
6162
- name: Build and push
6263
uses: docker/build-push-action@v6

0 commit comments

Comments
 (0)