Skip to content
Snippets Groups Projects
Commit 158f205a authored by Andrea Ceccanti's avatar Andrea Ceccanti
Browse files

ci: towards push to dockerhub

parent 08c398a9
No related branches found
No related tags found
No related merge requests found
Pipeline #13951 passed
...@@ -4,6 +4,7 @@ stages: ...@@ -4,6 +4,7 @@ stages:
- build - build
- test - test
- docker-build - docker-build
- docker-push
- deploy - deploy
build4c: build4c:
...@@ -64,10 +65,12 @@ docker-build: ...@@ -64,10 +65,12 @@ docker-build:
- docker push ${CI_REGISTRY_IMAGE}/ngx-voms:${CI_COMMIT_SHA:0:8} - docker push ${CI_REGISTRY_IMAGE}/ngx-voms:${CI_COMMIT_SHA:0:8}
dockerhub-push: dockerhub-push:
stage: docker-build stage: docker-push
image: docker:latest image: docker:latest
services: services:
- docker:dind - docker:dind
dependencies:
- docker-build
script: script:
- docker login -u gitlab-ci-token -p ${CI_JOB_TOKEN} ${CI_REGISTRY} - docker login -u gitlab-ci-token -p ${CI_JOB_TOKEN} ${CI_REGISTRY}
- docker pull ${CI_REGISTRY_IMAGE}/ngx-voms:${CI_COMMIT_SHA:0:8} - docker pull ${CI_REGISTRY_IMAGE}/ngx-voms:${CI_COMMIT_SHA:0:8}
......
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