File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11name : Publish Docker image
22
33on :
4- workflow_run :
5- workflows : ["Gradle CI"]
6- types : [completed]
7- branches :
8- - ' * '
4+ workflow_call :
5+ inputs :
6+ release_version :
7+ required : true
8+ type : string
99
1010jobs :
1111 build-and-push :
1212 runs-on : ubuntu-latest
13- if : ${{ github.event.workflow_run.conclusion == 'success' && github.event.workflow_run.event == 'release' }}
1413 permissions :
1514 contents : read
1615 packages : write
3332 file : ./Dockerfile
3433 push : true
3534 build-args : |
36- RELEASE_VERSION=${{ github.event.workflow_run.head_branch }}
35+ RELEASE_VERSION=${{ inputs.release_version }}
3736 tags : |
38- ghcr.io/apdevteam/modmail:${{ github.event.workflow_run.head_branch }}
37+ ghcr.io/apdevteam/modmail:${{ inputs.release_version }}
3938 ghcr.io/apdevteam/modmail:latest
You can’t perform that action at this time.
0 commit comments