Skip to content

Commit ac8cd2b

Browse files
committed
ci: publish tagged docker images on release
1 parent 5c7f290 commit ac8cd2b

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.github/workflows/publish-docker.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,16 @@ on:
77
- completed
88
branches:
99
- main
10+
release:
11+
types: [published]
1012

1113
env:
1214
REGISTRY: ghcr.io
1315
IMAGE_NAME: ${{ github.repository }}
1416

1517
jobs:
1618
build-and-push:
17-
if: ${{ github.event.workflow_run.conclusion == 'success' }}
19+
if: ${{ github.event.workflow_run.conclusion == 'success' || github.event_name == 'release' }}
1820
runs-on: ubuntu-latest
1921
permissions:
2022
contents: read
@@ -45,6 +47,7 @@ jobs:
4547
type=sha,format=long
4648
type=ref,event=branch
4749
type=ref,event=tag
50+
type=raw,value={{tag}},enable={{is_release}}
4851
4952
- name: Build and push Docker image
5053
uses: docker/build-push-action@v5

0 commit comments

Comments
 (0)