File tree 1 file changed +5
-3
lines changed
1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -122,11 +122,13 @@ jobs:
122
122
sarif_file : snyk.sarif
123
123
124
124
# Use the metadata generated in the `testbuild` step to find all the images
125
- # that have been built. We copy them one by one to the procuction registry
125
+ # that have been built. We copy them one by one to the production registry
126
126
# using skopeo. Then we sign the production images too.
127
127
copytoproduction :
128
128
name : Copy images to production
129
- if : github.event.inputs.environment == 'production' || github.event_name == 'schedule'
129
+ if : |
130
+ github.ref == 'refs/heads/main' &&
131
+ ( github.event.inputs.environment == 'production' || github.event_name == 'schedule' )
130
132
runs-on : ubuntu-latest
131
133
needs :
132
134
- testbuild
@@ -182,4 +184,4 @@ jobs:
182
184
'
183
185
)
184
186
echo "Signing ${images}"
185
- cosign sign --yes ${images}
187
+ cosign sign --yes ${images}
You can’t perform that action at this time.
0 commit comments