Fix ci & push image to Docker

This commit is contained in:
Mirco 2024-07-25 15:38:31 +02:00
parent b69a3f93e6
commit 033490a896

View file

@ -54,10 +54,11 @@ buildimage:
before_script: before_script:
- echo "---------- BEFORE -------------" - echo "---------- BEFORE -------------"
- echo "$CI_REGISTRY_PASSWORD" | docker login $CI_REGISTRY --username $CI_REGISTRY_USER --password-stdin - echo "$CI_REGISTRY_PASSWORD" | docker login $CI_REGISTRY --username $CI_REGISTRY_USER --password-stdin
# - docker login -u dda.DOCKERHUB_USER -p dda.DOCKERHUB_PASSWORD
script: script:
- export DOCKER_BUILDKIT=1 - export DOCKER_BUILDKIT=1
- docker build --tag=latest --target=ci-image-stage --build-arg BUILDKIT_INLINE_CACHE=1 . - docker build --tag=moderator-election-vaadin_fullstack:latest --target=ci-image-stage --build-arg BUILDKIT_INLINE_CACHE=1 .
- docker push $CI_REGISTRY_USER/moderator-election-vaadin_fullstack - docker push $DOCKERHUB_USER/moderator-election-vaadin_fullstack
# stage: image # stage: image
# script: # script: