-
Notifications
You must be signed in to change notification settings - Fork 108
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Unified usage CI_BASE_IMAGE and BUILD_IMAGE_TAG to prevent syntax err…
…ors reported by latest docker version.
- Loading branch information
Showing
2 changed files
with
9 additions
and
7 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,15 @@ | ||
#! /bin/bash | ||
|
||
REGISTRY=${1:-registry.gitlab.syncad.com/hive/hive/} | ||
CI_IMAGE_TAG=:ubuntu22.04-9 | ||
CI_IMAGE_TAG=ubuntu22.04-9 | ||
|
||
docker buildx build --progress=plain --target=runtime \ | ||
--build-arg CI_REGISTRY_IMAGE="$REGISTRY" --build-arg CI_IMAGE_TAG=$CI_IMAGE_TAG \ | ||
--tag "${REGISTRY}runtime$CI_IMAGE_TAG" --file Dockerfile . | ||
--build-arg BUILD_IMAGE_TAG=$CI_IMAGE_TAG \ | ||
--tag "${REGISTRY}runtime:$CI_IMAGE_TAG" --file Dockerfile . | ||
|
||
|
||
docker buildx build --progress=plain --target=ci-base-image \ | ||
--build-arg CI_REGISTRY_IMAGE="$REGISTRY" --build-arg CI_IMAGE_TAG=$CI_IMAGE_TAG \ | ||
--tag "${REGISTRY}ci-base-image$CI_IMAGE_TAG" --file Dockerfile . | ||
--build-arg BUILD_IMAGE_TAG=$CI_IMAGE_TAG \ | ||
--tag "${REGISTRY}ci-base-image:$CI_IMAGE_TAG" --file Dockerfile . |