File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change 92
92
core.setFailed("'push_image' specified but missing 'registry_url', 'registry_user', or 'registry_pass'")
93
93
94
94
- id : generate-tags
95
+ if : success()
95
96
name : Generate tag list
96
97
shell : bash
97
98
env :
@@ -130,17 +131,19 @@ runs:
130
131
echo "cache_key=$(tr ':/' '_' <<< $TIMESTAMP_IMAGE)_buildx_${GITHUB_SHA}" >> ${GITHUB_OUTPUT}
131
132
132
133
- name : Set up Docker Buildx
134
+ if : success()
133
135
uses : docker/setup-buildx-action@v1
134
136
135
137
- name : Container Registry Login
136
- if : fromJSON(inputs.push_image)
138
+ if : success() && fromJSON(inputs.push_image)
137
139
uses : docker/login-action@v1
138
140
with :
139
141
registry : ${{ inputs.registry_url }}
140
142
username : ${{ inputs.registry_user }}
141
143
password : ${{ inputs.registry_pass }}
142
144
143
145
- name : Build and push Docker images
146
+ if : success()
144
147
145
148
with :
146
149
push : ${{ fromJSon(inputs.push_image) }}
@@ -154,7 +157,7 @@ runs:
154
157
cache-to : type=local,dest=/tmp/.buildx-cache,mode=max
155
158
156
159
- name : Cache Docker images
157
- if : fromJSON(inputs.cache_image)
160
+ if : success() && fromJSON(inputs.cache_image)
158
161
uses : actions/cache@v2
159
162
with :
160
163
path : /tmp/.buildx-cache
You can’t perform that action at this time.
0 commit comments