|
|
|
|
@ -157,22 +157,46 @@ build:debug:cargo:x86_64-unknown-linux-musl:
@@ -157,22 +157,46 @@ build:debug:cargo:x86_64-unknown-linux-musl:
|
|
|
|
|
- mkdir -p linux/arm/ && mv ./conduit-arm-unknown-linux-musleabihf linux/arm/v6 |
|
|
|
|
- mkdir -p linux/arm/ && mv ./conduit-armv7-unknown-linux-musleabihf linux/arm/v7 |
|
|
|
|
- mv ./conduit-aarch64-unknown-linux-musl linux/arm64 |
|
|
|
|
- 'export CREATED=$(date -u +''%Y-%m-%dT%H:%M:%SZ'') && echo "Docker image creation date: $CREATED"' |
|
|
|
|
# Actually create multiarch image: |
|
|
|
|
- > |
|
|
|
|
docker buildx build |
|
|
|
|
--pull |
|
|
|
|
--build-arg CREATED=$CREATED |
|
|
|
|
--build-arg VERSION=$(grep -m1 -o '[0-9].[0-9].[0-9]' Cargo.toml) |
|
|
|
|
--build-arg "GIT_REF=$CI_COMMIT_SHORT_SHA" |
|
|
|
|
--platform "$PLATFORMS" |
|
|
|
|
--tag "$GL_IMAGE_TAG" |
|
|
|
|
--tag "$GL_IMAGE_TAG-commit-$CI_COMMIT_SHORT_SHA" |
|
|
|
|
--tag "$DH_IMAGE_TAG" |
|
|
|
|
--tag "$DH_IMAGE_TAG-$CI_COMMIT_SHORT_SHA" |
|
|
|
|
--file "$DOCKER_FILE" . |
|
|
|
|
# Re-use the cached build (thus not recompiling Conduit) and then --push it to GitLab |
|
|
|
|
- > |
|
|
|
|
docker buildx build |
|
|
|
|
--pull |
|
|
|
|
--push |
|
|
|
|
--build-arg CREATED=$(date -u +'%Y-%m-%dT%H:%M:%SZ') |
|
|
|
|
--build-arg CREATED=$CREATED |
|
|
|
|
--build-arg VERSION=$(grep -m1 -o '[0-9].[0-9].[0-9]' Cargo.toml) |
|
|
|
|
--build-arg "GIT_REF=$CI_COMMIT_SHORT_SHA" |
|
|
|
|
--platform "$PLATFORMS" |
|
|
|
|
--tag "$GL_IMAGE_TAG" |
|
|
|
|
--tag "$GL_IMAGE_TAG-commit-$CI_COMMIT_SHORT_SHA" |
|
|
|
|
--tag "$LOCAL_DH_IMAGE_TAG" |
|
|
|
|
--file "$DOCKER_FILE" . |
|
|
|
|
# Only try to push to docker hub, if auth data for dockerhub exists: |
|
|
|
|
- if [ -n "${DOCKER_HUB}" ]; then docker push "$DH_IMAGE_TAG"; fi |
|
|
|
|
- if [ -n "${DOCKER_HUB}" ]; then docker push "$DH_IMAGE_TAG-commit-$CI_COMMIT_SHORT_SHA"; fi |
|
|
|
|
- > |
|
|
|
|
if [ -n "${DOCKER_HUB}" ]; then |
|
|
|
|
docker buildx build |
|
|
|
|
--pull |
|
|
|
|
--push |
|
|
|
|
--build-arg CREATED=$CREATED |
|
|
|
|
--build-arg VERSION=$(grep -m1 -o '[0-9].[0-9].[0-9]' Cargo.toml) |
|
|
|
|
--build-arg "GIT_REF=$CI_COMMIT_SHORT_SHA" |
|
|
|
|
--platform "$PLATFORMS" |
|
|
|
|
--tag "$DH_IMAGE_TAG" |
|
|
|
|
--tag "$DH_IMAGE_TAG-$CI_COMMIT_SHORT_SHA" |
|
|
|
|
--file "$DOCKER_FILE" . |
|
|
|
|
; fi |
|
|
|
|
|
|
|
|
|
build:docker:next: |
|
|
|
|
extends: .docker-shared-settings |
|
|
|
|
|