File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -14,6 +14,7 @@ permissions:
1414env :
1515 FOUNDRY_IMAGE : ghcr.io/${{ github.repository }}/foundry:${{ github.ref == 'refs/heads/main' && 'latest' || github.sha }}
1616 FOUNDRY_IMAGE_HEAD : ghcr.io/${{ github.repository }}/foundry:latest
17+ # private cache registry
1718 CACHE_URL : ghcr.io/${{ github.repository }}/cache
1819
1920jobs :
Original file line number Diff line number Diff line change @@ -30,12 +30,8 @@ cp "Containerfile.comment" "Containerfile"
3030echo " FROM ${FROM_REF} " >> " Containerfile"
3131tail -n +2 " Containerfile.${CONTAINERFILE} " >> " Containerfile"
3232
33- if [ -n " ${BUILDAH_ISOLATION:- } " ]; then
34- EXTRA_BUILD_ARGS=" --isolation=$BUILDAH_ISOLATION "
35- fi
36-
3733echo " Building $IMAGE "
38- buildah build $EXTRA_BUILD_ARGS --layers --arch=" $ARCH " \
34+ buildah build --layers --arch=" $ARCH " \
3935 --build-arg CONTAINERFILE=" Containerfile" \
4036 --from " ${FROM_REF} " \
4137 -f " Containerfile.${CONTAINERFILE} " \
Original file line number Diff line number Diff line change @@ -3,7 +3,12 @@ set -xeuo pipefail
33
44cd " $( dirname " $0 " ) "
55
6- trap " e=\$ ?; subscription-manager unregister || true; exit \$ e" EXIT
6+ cleanup () {
7+ exit_code=$?
8+ subscription-manager unregister || true
9+ exit " $exit_code "
10+ }
11+ trap cleanup EXIT
712
813subscription-manager register --org " $RHSM_ORG " --activationkey " $RHSM_ACTIVATIONKEY " || true
914
You can’t perform that action at this time.
0 commit comments