Skip to content
Snippets Groups Projects
Verified Commit de3a33c4 authored by Martin Weise's avatar Martin Weise
Browse files
parent 9e4840c4
No related branches found
No related tags found
No related merge requests found
......@@ -519,11 +519,11 @@ clean-images:
script:
- bash ./.gitlab/remove-unsupported-images.sh
release-images:
release-images-amd64:
stage: release
image: docker:${DOCKER_VERSION}-dind
variables:
BUILDX_BAKE_ARGS: --allow=network.host --load
PLATFORM: linux/amd64
dependencies:
- clean-images
- test-analyse-service
......@@ -543,13 +543,8 @@ release-images:
- "echo ${CI_REGISTRY_PASSWORD} | docker login --username ${CI_REGISTRY_USER} --password-stdin ${CI_REGISTRY_URL}"
- "docker logout ${CI_REGISTRY2_URL}"
- "echo ${CI_REGISTRY2_PASSWORD} | docker login --username ${CI_REGISTRY2_USER} --password-stdin ${CI_REGISTRY2_URL}"
- "docker buildx create --name multiarch --driver docker-container --use"
script:
- docker buildx build --platform=linux/amd64 --builder=multiarch --output="type=docker,name=dbrepo-core:build" --target build ./lib/java/dbrepo-core
- "docker buildx bake $BUILDX_BAKE_ARGS"
- REPOSITORY_URL=$CI_REGISTRY2_URL make release-images
- docker buildx build --platform=linux/arm64 --builder=multiarch --output="type=docker,name=dbrepo-core:build" --target build ./lib/java/dbrepo-core
- "docker buildx bake $BUILDX_BAKE_ARGS"
- REPOSITORY_URL=$CI_REGISTRY_URL make release-images
- REPOSITORY_URL=$CI_REGISTRY2_URL make release-images
release-helm:
......
......@@ -3,6 +3,7 @@
APP_VERSION ?= 1.8.1
CHART_VERSION ?= 1.8.1
REPOSITORY_URL ?= registry.datalab.tuwien.ac.at/dbrepo
PLATFORM ?= linux/amd64
.PHONY: all
all: help
......
......@@ -2,9 +2,9 @@
.PHONY: build-images
build-images: ## Build Docker images.
docker build --network=host -t dbrepo-core:build --target build ./lib/java/dbrepo-core
docker build --network=host -t dbrepo-data-service:build --target build dbrepo-data-service
docker build --network=host -t dbrepo-metadata-service:build --target build dbrepo-metadata-service
docker build --platform=$PLATFORM --network=host -t dbrepo-core:build --target build ./lib/java/dbrepo-core
docker build --platform=$PLATFORM --network=host -t dbrepo-data-service:build --target build dbrepo-data-service
docker build --platform=$PLATFORM --network=host -t dbrepo-metadata-service:build --target build dbrepo-metadata-service
docker compose build --parallel
.PHONY: build-data-service
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment