Skip to content

Commit

Permalink
Fix docker build script
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanjohnsontv committed Jan 8, 2024
1 parent 9e59cbe commit dcdd624
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions docker/docker-build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,19 @@

set -o errexit


# Builds the base image including the solver dependencies
build_and_publish_image(){
build_and_publish_image() {
export PATH=.:$PATH
get-dependencies.sh >/dev/null
GOOS=linux GOARCH=amd64 build.sh
make setup >/dev/null
GOOS=linux GOARCH=amd64 make build
GCR_TAG="oshomedepot/arcade:${TAG_VERSION}"
docker build . -f docker/Dockerfile -t ${GCR_TAG}
echo "Image ${GCR_TAG} built..."
docker push ${GCR_TAG}
}

print_help(){
print_help() {
echo ""
echo "docker/build.sh -v [VERSION] - Builds the docker image"
echo ""
Expand Down Expand Up @@ -44,7 +45,6 @@ while [[ $# -gt 0 ]]; do
exit 0
;;
--help)
shift
print_help
exit 0
;;
Expand Down

0 comments on commit dcdd624

Please sign in to comment.