Skip to content
Snippets Groups Projects

push to docker hub as well

Merged Torma Kristóf requested to merge tormakris-master-patch-12169 into master
1 file
+ 13
1
Compare changes
  • Side-by-side
  • Inline
+ 13
1
@@ -51,7 +51,7 @@ Flake8:
# - pip install -r requirements/production.txt
# - python src/manage.py test
Docker build:
Docker build to KSZK registry:
stage: Docker Build
tags: [kszk]
only:
@@ -63,6 +63,18 @@ Docker build:
- echo "{\"auths\":{\"registry.kszk.bme.hu\":{\"username\":\"$REGISTRY_USER\",\"password\":\"$REGISTRY_PASSWORD\"}}}" > /kaniko/.docker/config.json
- /kaniko/executor --context $CI_PROJECT_DIR --dockerfile $CI_PROJECT_DIR/Dockerfile --destination $CONTAINER_IMAGE
Docker build to Docker Hub registry:
stage: Docker Build
tags: [kszk]
only:
- tags
image:
name: gcr.io/kaniko-project/executor:debug
entrypoint: ['']
script:
- echo "{\"auths\":{\"hub.docker.com\":{\"username\":\"$DOCKERHUB_USER\",\"password\":\"$DOCKERHUB_PASSWORD\"}}}" > /kaniko/.docker/config.json
- /kaniko/executor --context $CI_PROJECT_DIR --dockerfile $CI_PROJECT_DIR/Dockerfile --destination $CONTAINER_IMAGE
Deploy to Kubernetes:
stage: deploy
image: alpine
Loading