ci: update location of Dockerfile and build image for migrations
This commit is contained in:
parent
4c7f1c2aec
commit
92191814e4
1 changed files with 16 additions and 3 deletions
|
|
@ -26,15 +26,28 @@ test:
|
||||||
coverage_format: cobertura
|
coverage_format: cobertura
|
||||||
path: coverage.xml
|
path: coverage.xml
|
||||||
|
|
||||||
build:
|
build:httpserver:
|
||||||
stage: build
|
stage: build
|
||||||
variables:
|
variables:
|
||||||
IMAGE: $CI_REGISTRY_IMAGE
|
IMAGE: $CI_REGISTRY_IMAGE/httpserver
|
||||||
TAG: $CI_COMMIT_REF_SLUG-$CI_COMMIT_SHORT_SHA
|
TAG: $CI_COMMIT_REF_SLUG-$CI_COMMIT_SHORT_SHA
|
||||||
before_script:
|
before_script:
|
||||||
- echo $CI_REGISTRY_PASSWORD | docker login -u $CI_REGISTRY_USER --password-stdin $CI_REGISTRY
|
- echo $CI_REGISTRY_PASSWORD | docker login -u $CI_REGISTRY_USER --password-stdin $CI_REGISTRY
|
||||||
- docker info
|
- docker info
|
||||||
script:
|
script:
|
||||||
- docker buildx create --name yggdrasil --use
|
- docker buildx create --name yggdrasil --use
|
||||||
- docker buildx build --provenance=false --platform linux/amd64,linux/arm64 -t $IMAGE:$TAG --push .
|
- docker buildx build --provenance=false --platform linux/amd64,linux/arm64 -t $IMAGE:$TAG -f build/packages/httpserver/Dockerfile --push .
|
||||||
|
- docker manifest inspect $IMAGE:$TAG
|
||||||
|
|
||||||
|
build:migrations:
|
||||||
|
stage: build
|
||||||
|
variables:
|
||||||
|
IMAGE: $CI_REGISTRY_IMAGE/migrations
|
||||||
|
TAG: $CI_COMMIT_REF_SLUG-$CI_COMMIT_SHORT_SHA
|
||||||
|
before_script:
|
||||||
|
- echo $CI_REGISTRY_PASSWORD | docker login -u $CI_REGISTRY_USER --password-stdin $CI_REGISTRY
|
||||||
|
- docker info
|
||||||
|
script:
|
||||||
|
- docker buildx create --name yggdrasil --use
|
||||||
|
- docker buildx build --provenance=false --platform linux/amd64,linux/arm64 -t $IMAGE:$TAG -f build/packages/migrations/Dockerfile --push .
|
||||||
- docker manifest inspect $IMAGE:$TAG
|
- docker manifest inspect $IMAGE:$TAG
|
||||||
|
|
|
||||||
Reference in a new issue