Skip to content
This repository was archived by the owner on May 28, 2024. It is now read-only.

Commit

Permalink
test: use --from instead of sed replace FROM in Containerfile
Browse files Browse the repository at this point in the history
Signed-off-by: Xiaofeng Wang <[email protected]>
  • Loading branch information
henrywang committed Apr 21, 2024
1 parent 605ce70 commit 14e79dd
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions bib-image.sh
Original file line number Diff line number Diff line change
Expand Up @@ -118,8 +118,7 @@ sudo podman build --platform "$BUILD_PLATFORM" --tls-verify=false --retry=5 --re
[[ $- =~ x ]] && debug=1 && set +x
sed "s/REPLACE_ME/${QUAY_SECRET}/g" files/auth.template | tee auth.json > /dev/null
[[ $debug == 1 ]] && set -x
sed -i "s|^FROM.*|FROM ${TEST_IMAGE_NAME}:${QUAY_REPO_TAG}|" examples/container-auth/Containerfile
podman build --platform "$BUILD_PLATFORM" --tls-verify=false --retry=5 --retry-delay=10 --secret id=creds,src=./auth.json -t "${TEST_IMAGE_NAME}:${QUAY_REPO_TAG}" examples/container-auth
podman build --platform "$BUILD_PLATFORM" --tls-verify=false --retry=5 --retry-delay=10 --from "localhost/${TEST_IMAGE_NAME}:${QUAY_REPO_TAG}" --secret id=creds,src=./auth.json -t "${TEST_IMAGE_NAME}:${QUAY_REPO_TAG}" examples/container-auth

greenprint "Push $TEST_OS installation container image"
sudo podman push --tls-verify=false --quiet "${TEST_IMAGE_NAME}:${QUAY_REPO_TAG}" "$TEST_IMAGE_URL"
Expand Down

0 comments on commit 14e79dd

Please sign in to comment.