-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
updates for better podman support and local container building
- Loading branch information
1 parent
9c02be4
commit b969fa1
Showing
4 changed files
with
49 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# Publish relations images to your personal quay.io repository | ||
# Compatible with MacOS and other archs for cross-compilation | ||
# Excludes redhat.registry.io as this is not needed for local/ephem development | ||
set -exv | ||
|
||
if [[ -z "$QUAY_REPO_RELATIONS" ]]; then | ||
# required since this script is not used in the CI pipeline, publishing should | ||
# only happen from a developer's local machine to their personal repo | ||
echo "QUAY_REPO_RELATIONS must be set" | ||
exit 1 | ||
fi | ||
IMAGE_TAG=$(git rev-parse --short=7 HEAD) | ||
|
||
source ./scripts/check_docker_podman.sh | ||
${DOCKER} build --platform linux/amd64 --build-arg TARGETARCH=amd64 -t "${QUAY_REPO_RELATIONS}:${IMAGE_TAG}" -f ./Dockerfile | ||
${DOCKER} push "${QUAY_REPO_RELATIONS}:${IMAGE_TAG}" |