Skip to content

Commit

Permalink
Fail if base image cannot be built
Browse files Browse the repository at this point in the history
  • Loading branch information
garazdawi committed Jan 15, 2024
1 parent a66bde2 commit 1651a0a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/actions/build-base-image/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ runs:
using: composite
steps:
- name: Cleanup GH Runner
shell: bash -euxo pipefail {0}
shell: bash -euo pipefail {0}
run: |
## Delete large files from runner to get more disk space
## See https://github.com/actions/runner-images/issues/2840
Expand Down Expand Up @@ -57,7 +57,7 @@ runs:
key: prebuilt-cache-${{ inputs.TYPE }}-${{ github.ref_name }}-${{ github.sha }}
- name: Build image
if: inputs.BUILD_IMAGE == 'true'
shell: bash -euxo pipefail {0}
shell: bash -eo pipefail {0}
run: |
.github/scripts/restore-from-prebuilt.sh `pwd` .github/otp.tar.gz
rm -f otp_{src,cache}.tar.gz
Expand Down
2 changes: 2 additions & 0 deletions .github/scripts/build-base-image.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#!/bin/bash

set -eo pipefail

BASE_BRANCH="$1"

case "${BASE_BRANCH}" in
Expand Down

0 comments on commit 1651a0a

Please sign in to comment.