Skip to content
Snippets Groups Projects
Commit 059220d9 authored by Rafael László's avatar Rafael László :speech_balloon:
Browse files

Merge branch 'tormakris-master-patch-12169' into 'master'

push to docker hub as well

See merge request !5
parents b29626e5 49f9f3ae
No related branches found
Tags 1.0.3
1 merge request!5push to docker hub as well
Pipeline #5948 failed
......@@ -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
......
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