Skip to content

Commit

Permalink
ci: only update container versions on success
Browse files Browse the repository at this point in the history
  • Loading branch information
sumnerevans committed Oct 14, 2021
1 parent 5dea597 commit e4098a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ build amd64:
- docker rmi $CI_REGISTRY_IMAGE:$CI_COMMIT_SHA-amd64
after_script:
- |
if [[ "$CI_COMMIT_BRANCH" == "master" ]]; then
if [[ "$CI_COMMIT_BRANCH" == "master" && "$CI_JOB_STATUS" == "success" ]]; then
apk add --update curl jq
rm -rf /var/cache/apk/*
Expand Down

0 comments on commit e4098a2

Please sign in to comment.