Skip to content

Commit

Permalink
chore: Update build-container.sh to use registry and target variables…
Browse files Browse the repository at this point in the history
… in docker build command
  • Loading branch information
amirnd51 committed Jul 24, 2024
1 parent 800222d commit d58b7a8
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions scripts/build-container.sh
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,9 @@ if [ ! -f "$DOCKERFILE" ]; then
die_with_message "Dockerfile ${DOCKERFILE} does not exist"
fi

docker build -t "$REGISTRY-$TARGET:$VERSION" --file "$DOCKERFILE" "$TARGET_DIR"
docker tag "$REGISTRY-$TARGET:$VERSION" "$REGISTRY-$TARGET:latest"
IMAGE_NAME="$REGISTRY/$TARGET:$VERSION"

docker build -t "$IMAGE_NAME" --file "$DOCKERFILE" "$TARGET_DIR"
docker tag "$IMAGE_NAME" "$REGISTRY/$TARGET:latest"

cleanup_and_exit

0 comments on commit d58b7a8

Please sign in to comment.