We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4731f84 commit b319ec2Copy full SHA for b319ec2
1 file changed
.github/workflows/docker.yaml
@@ -1,12 +1,14 @@
1
name: Publish Docker image
2
3
on:
4
- release:
5
- types: [created, prereleased]
+ workflow_run:
+ workflows: ["Gradle CI"]
6
+ types: [completed]
7
8
jobs:
9
build-and-push:
10
runs-on: ubuntu-latest
11
+ if: ${{ github.event.workflow_run.conclusion == 'success' && github.event.workflow_run.event == 'release' }}
12
permissions:
13
contents: read
14
packages: write
@@ -29,7 +31,7 @@ jobs:
29
31
file: ./Dockerfile
30
32
push: true
33
build-args: |
- RELEASE_VERSION=${{ github.event.release.tag_name }}
34
+ RELEASE_VERSION=${{ github.event.workflow_run.head_branch }}
35
tags: |
- ghcr.io/apdevteam/modmail:${{ github.event.release.tag_name }}
36
+ ghcr.io/apdevteam/modmail:${{ github.event.workflow_run.head_branch }}
37
ghcr.io/apdevteam/modmail:latest
0 commit comments