Skip to content

Commit

Permalink
MD-2151: ensure CodeBuild termination on build failure (#2)
Browse files Browse the repository at this point in the history
* MD-2151: ensure CodeBuild termination on build failure
* MD-2151: refactor YAML to be clearer
  • Loading branch information
crannym authored Sep 16, 2022
1 parent f49d2c8 commit 8fcbaf0
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .codebuild.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,17 @@ phases:
- cd pkg
- cp Makefile.bidi Makefile
build:
on-failure: ABORT
commands:
- make prepare
- mock-build --os 8
post_build:
on-failure: ABORT
commands:
- "if [[ \"${MD_ENVIRONMENT}\" == \"live\" ]] ; then for rpm in $(ls ./RPMS/liblpm-*.rpm); do repo upload ${rpm} md-el8/revisions/head; done; fi"
- |-
if [[ "${MD_ENVIRONMENT}" == "live" ]] ; then
for rpm in $(ls ./RPMS/liblpm-*.rpm)
do
repo upload ${rpm} md-el8/revisions/head
done
fi

0 comments on commit 8fcbaf0

Please sign in to comment.