Skip to content
Snippets Groups Projects
Commit 49f9f3ae authored by Torma Kristóf's avatar Torma Kristóf :alien:
Browse files

push to docker hub as well

parent b29626e5
No related branches found
No related tags found
1 merge request!5push to docker hub as well
......@@ -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