-
Notifications
You must be signed in to change notification settings - Fork 303
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
58f3b96
commit 74ef968
Showing
1 changed file
with
26 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
#!/bin/bash | ||
|
||
# Run make commands that build and push images | ||
# (see Dockerfiles in the root directory) | ||
|
||
# ENV variables: | ||
# * BINARY (example: "e2e-test") | ||
# * ALL_ARCH (example: "amd64 arm64") | ||
# * REGISTRY (container registry) | ||
# * VERBOSE (example: -3) | ||
|
||
BINARY=${BINARY:-e2e-test} | ||
ARCH=${ARCH:-"amd64"} | ||
ALL_ARCH=${ALL_ARCH:-"amd64 arm64"} | ||
REGISTRY=${REGISTRY:-gcr.io/example} | ||
VERBOSE=${VERBOSE:1} | ||
|
||
# This command builds an image of $BINARY and | ||
# pushes it to the $REGISTRY | ||
make push VERBOSE="${VERBOSE}" CONTAINER_BINARIES="${BINARY}" \ | ||
REGISTRY="${REGISTRY}" ARCH="${ARCH}" | ||
# Based on the image from the previous step, | ||
# all-push command will try to create a multiarch image | ||
# (there is no $ARCH parameter) | ||
make all-push VERBOSE="${VERBOSE}" CONTAINER_BINARIES="${BINARY}" \ | ||
REGISTRY="${REGISTRY}" ALL_ARCH="${ALL_ARCH}" |