File tree 2 files changed +3
-1
lines changed
actions/build-container-image
2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change 63
63
id : build-and-push
64
64
uses : docker/build-push-action@ac9327eae2b366085ac7f6a2d02df8aa8ead720a
65
65
with :
66
- push : true
66
+ push : ${{ github.event_name == 'push' }}
67
67
context : .
68
68
platforms : linux/${{ inputs.arch }}
69
69
file : Dockerfile.${{ inputs.arch }}
Original file line number Diff line number Diff line change 47
47
token : ${{ secrets.GITHUB_TOKEN }}
48
48
49
49
push-container-image :
50
+ if : github.event_name == 'push'
50
51
runs-on : ubuntu-latest
51
52
needs : build-container-image
52
53
steps :
@@ -113,6 +114,7 @@ jobs:
113
114
uses : actions/download-artifact@v2
114
115
115
116
- name : Upload artifacts to build results
117
+ if : github.event_name == 'push'
116
118
uses : marvinpinto/action-automatic-releases@latest
117
119
with :
118
120
repo_token : ${{ secrets.GITHUB_TOKEN }}
You can’t perform that action at this time.
0 commit comments