File tree Expand file tree Collapse file tree 1 file changed +4
-7
lines changed Expand file tree Collapse file tree 1 file changed +4
-7
lines changed Original file line number Diff line number Diff line change @@ -7,20 +7,18 @@ name: Docker
7
7
8
8
on :
9
9
push :
10
- branches : [ "main" ]
10
+ branches : ["main"]
11
11
pull_request :
12
- branches : [ "main" ]
12
+ branches : ["main"]
13
13
14
14
env :
15
15
# Use docker.io for Docker Hub if empty
16
16
REGISTRY : ghcr.io
17
17
# github.repository as <account>/<repo>
18
18
IMAGE_NAME : ${{ github.repository }}
19
19
20
-
21
20
jobs :
22
21
build :
23
-
24
22
runs-on : ubuntu-latest
25
23
permissions :
26
24
contents : read
39
37
if : github.event_name != 'pull_request'
40
38
uses : sigstore/cosign-installer@f3c664df7af409cb4873aa5068053ba9d61a57b6 # v2.6.0
41
39
with :
42
- cosign-release : ' v1.13.1'
43
-
40
+ cosign-release : " v1.13.1"
44
41
45
42
# Workaround: https://github.com/docker/build-push-action/issues/461
46
43
- name : Setup Docker buildx
69
66
# Build and push Docker image with Buildx (don't push on PR)
70
67
# https://github.com/docker/build-push-action
71
68
- name : Build and push Docker image
69
+ if : github.event_name != 'pull_request'
72
70
id : build-and-push
73
71
uses : docker/build-push-action@ac9327eae2b366085ac7f6a2d02df8aa8ead720a
74
72
with :
79
77
cache-from : type=gha
80
78
cache-to : type=gha,mode=max
81
79
82
-
83
80
# Sign the resulting Docker image digest except on PRs.
84
81
# This will only write to the public Rekor transparency log when the Docker
85
82
# repository is public to avoid leaking data. If you would like to publish
You can’t perform that action at this time.
0 commit comments