Update .gitlab-ci.yml

This commit is contained in:
Florian Hoss 2024-05-31 12:02:54 +02:00
parent e8b377e9fb
commit 3166cdb261
No known key found for this signature in database
GPG key ID: 0638DC11BFD36662

View file

@ -28,18 +28,17 @@ build:
- !reference [.auth_gitlab, before_script] - !reference [.auth_gitlab, before_script]
script: script:
- docker buildx create --use - docker buildx create --use
- docker buildx build . --file docker/Dockerfile \ - >
--provenance=false \ docker buildx build . --file docker/Dockerfile
--platform=linux/amd64,linux/arm64 \ --provenance=false
--build-arg APP_VERSION=${CI_COMMIT_TAG} \ --platform=linux/amd64,linux/arm64
--build-arg V_GOLANG=${V_GOLANG} \ --build-arg APP_VERSION=${CI_COMMIT_TAG}
--build-arg V_NODE=${V_NODE} \ --build-arg V_GOLANG=${V_GOLANG}
--build-arg V_ALPINE=${V_ALPINE} \ --build-arg V_NODE=${V_NODE}
--tag ${CURRENT_IMAGE} \ --build-arg V_ALPINE=${V_ALPINE}
--tag ${LATEST_IMAGE} \ --tag ${CURRENT_IMAGE}
--pull --push --tag ${LATEST_IMAGE}
- docker push $CURRENT_IMAGE --push
- docker push $LATEST_IMAGE
after_script: after_script:
- !reference [.auth_gitlab, after_script] - !reference [.auth_gitlab, after_script]