We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5c7f290 commit ac8cd2bCopy full SHA for ac8cd2b
.github/workflows/publish-docker.yaml
@@ -7,14 +7,16 @@ on:
7
- completed
8
branches:
9
- main
10
+ release:
11
+ types: [published]
12
13
env:
14
REGISTRY: ghcr.io
15
IMAGE_NAME: ${{ github.repository }}
16
17
jobs:
18
build-and-push:
- if: ${{ github.event.workflow_run.conclusion == 'success' }}
19
+ if: ${{ github.event.workflow_run.conclusion == 'success' || github.event_name == 'release' }}
20
runs-on: ubuntu-latest
21
permissions:
22
contents: read
@@ -45,6 +47,7 @@ jobs:
45
47
type=sha,format=long
46
48
type=ref,event=branch
49
type=ref,event=tag
50
+ type=raw,value={{tag}},enable={{is_release}}
51
52
- name: Build and push Docker image
53
uses: docker/build-push-action@v5
0 commit comments