Skip to content

Commit

Permalink
Abort when fail
Browse files Browse the repository at this point in the history
  • Loading branch information
TonyCTHsu committed May 14, 2024
1 parent 80b6455 commit 41237df
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,12 @@ prepare_image_destinations:
- gem -v
- bundle -v
- ./.gitlab/check_gem_presence.rb $CI_COMMIT_TAG
- echo "IMG_DESTINATIONS=$(./.gitlab/prepare_image_destinations.rb dd-lib-ruby-init $CI_COMMIT_TAG)" >> build.env
- |
IMG_DESTINATIONS=$(./.gitlab/prepare_image_destinations.rb dd-lib-ruby-init CI_COMMIT_TAG) || {
echo "Failed to prepare image destinations: CI_COMMIT_TAG"
exit 1
}
echo "IMG_DESTINATIONS=$IMG_DESTINATIONS" > build.env
artifacts:
reports:
dotenv: build.env
Expand Down

0 comments on commit 41237df

Please sign in to comment.