Fix ci & push image to Docker

This commit is contained in:
Mirco 2024-07-26 10:40:40 +02:00
parent 5b55a30d57
commit b2841e2e24

View file

@ -53,8 +53,8 @@ buildimage:
# - buildjar # - buildjar
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 - docker login -u $DOCKERHUB_USER -p $DOCKERHUB_PASSWORD
script: script:
- export DOCKER_BUILDKIT=1 - export DOCKER_BUILDKIT=1
- docker build --tag=$DOCKERHUB_USER/moderator-election-vaadin_fullstack:latest --target=ci-image-stage --build-arg BUILDKIT_INLINE_CACHE=1 . - docker build --tag=$DOCKERHUB_USER/moderator-election-vaadin_fullstack:latest --target=ci-image-stage --build-arg BUILDKIT_INLINE_CACHE=1 .