Skip to content
Snippets Groups Projects
Commit 3676381c authored by schnarkus's avatar schnarkus
Browse files

buildx

parent 44fe6859
No related branches found
No related tags found
No related merge requests found
Pipeline #68703 failed
......@@ -48,7 +48,14 @@ publish_job:
dependencies:
- build_job
script:
- docker build -t $CI_REGISTRY_IMAGE:$version -t $CI_REGISTRY_IMAGE:latest -t $CI_REGISTRY_IMAGE:$environment_tag -f Containerfile .
- docker buildx create --use
- docker buildx build \
--tag $CI_REGISTRY_IMAGE:$version \
--tag $CI_REGISTRY_IMAGE:latest \
--tag $CI_REGISTRY_IMAGE:$environment_tag \
--file Containerfile \
--output type=docker \
.
- docker login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" $CI_REGISTRY
- docker push $CI_REGISTRY_IMAGE:$version
- docker push $CI_REGISTRY_IMAGE:latest
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment