Skip to content

Commit f2629fc

Browse files
committed
Cleanup and fix linter
1 parent a009a26 commit f2629fc

3 files changed

Lines changed: 8 additions & 6 deletions

File tree

.github/workflows/rhel.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ permissions:
1414
env:
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

1920
jobs:

build-and-push.sh

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,8 @@ cp "Containerfile.comment" "Containerfile"
3030
echo "FROM ${FROM_REF}" >> "Containerfile"
3131
tail -n +2 "Containerfile.${CONTAINERFILE}" >> "Containerfile"
3232

33-
if [ -n "${BUILDAH_ISOLATION:-}" ]; then
34-
EXTRA_BUILD_ARGS="--isolation=$BUILDAH_ISOLATION"
35-
fi
36-
3733
echo "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}" \

entrypoint.sh

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,12 @@ set -xeuo pipefail
33

44
cd "$(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

813
subscription-manager register --org "$RHSM_ORG" --activationkey "$RHSM_ACTIVATIONKEY" || true
914

0 commit comments

Comments
 (0)