Skip to content

Commit

Permalink
multiarch
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewazores committed Jul 4, 2024
1 parent 59ad60d commit 6865349
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion gameserver/build.bash
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,15 @@ function cleanup() {
}
trap cleanup EXIT

podman build -t quay.io/redhat-java-monitoring/gameserver-cryostat-agent:latest -f "${DIR}/Containerfile" "${DIR}"
BUILD_IMG="${APP_REGISTRY:-quay.io}/${APP_NAMESPACE:-redhat-java-monitoring}/${APP_NAME:-gameserver-cryostat-agent}"
BUILD_TAG="${APP_VERSION:-latest}"

podman manifest create "${BUILD_IMG}:${BUILD_TAG}"

for arch in amd64 arm64; do
echo "Building for ${arch} ..."
podman build -t "quay.io/redhat-java-monitoring/gameserver-cryostat-agent:linux-${arch}" -f "${DIR}/Containerfile" "${DIR}"
podman manifest add "${BUILD_IMG}:${BUILD_TAG}" containers-storage:"${BUILD_IMG}:linux-${arch}"
done

podman tag "${BUILD_IMG}:${BUILD_TAG}" "${BUILD_IMG}:latest"

0 comments on commit 6865349

Please sign in to comment.