Fix ci & push image to Docker
This commit is contained in:
parent
b69a3f93e6
commit
033490a896
1 changed files with 3 additions and 2 deletions
|
@ -54,10 +54,11 @@ buildimage:
|
|||
before_script:
|
||||
- echo "---------- BEFORE -------------"
|
||||
- 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:
|
||||
- export DOCKER_BUILDKIT=1
|
||||
- docker build --tag=latest --target=ci-image-stage --build-arg BUILDKIT_INLINE_CACHE=1 .
|
||||
- docker push $CI_REGISTRY_USER/moderator-election-vaadin_fullstack
|
||||
- docker build --tag=moderator-election-vaadin_fullstack:latest --target=ci-image-stage --build-arg BUILDKIT_INLINE_CACHE=1 .
|
||||
- docker push $DOCKERHUB_USER/moderator-election-vaadin_fullstack
|
||||
|
||||
# stage: image
|
||||
# script:
|
||||
|
|
Loading…
Reference in a new issue