-
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.
Merge pull request #219 from tylercreller/build-push-mac
Add make target for cross arch image build/push
- Loading branch information
Showing
3 changed files
with
28 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# Publish inventory 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_INVENTORY" ]]; 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_INVENTORY 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_INVENTORY}:${IMAGE_TAG}" -f ./Dockerfile | ||
${DOCKER} push "${QUAY_REPO_INVENTORY}:${IMAGE_TAG}" |