File tree Expand file tree Collapse file tree 1 file changed +5
-7
lines changed Expand file tree Collapse file tree 1 file changed +5
-7
lines changed Original file line number Diff line number Diff line change 6
6
- published
7
7
workflow_dispatch :
8
8
workflow_run :
9
- workflows :
10
- - Build
11
- types :
12
- - completed
9
+ workflows : ["Build"]
10
+ types : ["completed"]
11
+ branches :
12
+ - main
13
13
14
14
env :
15
15
REGISTRY : ghcr.io
16
16
17
17
jobs :
18
18
setup :
19
- if : ${{ github.event_name != 'workflow_run' || github.event.workflow_run.conclusion == 'success' }}
20
19
runs-on : ubuntu-latest
21
20
steps :
22
- # See https://github.com/docker/build-push-action/blob/v2.10.0/TROUBLESHOOTING.md#repository-name-must-be-lowercase
23
21
- name : Sanitize image name
24
22
uses : actions/github-script@v6
25
23
id : image-name
36
34
build_image : ${{ steps.image-name.outputs.result }}:${{ env.SHORT_SHA }}
37
35
38
36
push :
39
- needs : setup
40
37
if : ${{ github.event_name != 'workflow_run' || github.event.workflow_run.conclusion == 'success' }}
41
38
runs-on : ubuntu-latest
39
+ needs : setup
42
40
permissions :
43
41
packages : write
44
42
env :
You can’t perform that action at this time.
0 commit comments