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

try with buildx

parent 5e429575
No related branches found
No related tags found
No related merge requests found
Pipeline #68702 passed
......@@ -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