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
Branches
No related tags found
1 merge request!5push to docker hub as well
...@@ -51,7 +51,7 @@ Flake8: ...@@ -51,7 +51,7 @@ Flake8:
# - pip install -r requirements/production.txt # - pip install -r requirements/production.txt
# - python src/manage.py test # - python src/manage.py test
Docker build: Docker build to KSZK registry:
stage: Docker Build stage: Docker Build
tags: [kszk] tags: [kszk]
only: only:
...@@ -63,6 +63,18 @@ Docker build: ...@@ -63,6 +63,18 @@ Docker build:
- echo "{\"auths\":{\"registry.kszk.bme.hu\":{\"username\":\"$REGISTRY_USER\",\"password\":\"$REGISTRY_PASSWORD\"}}}" > /kaniko/.docker/config.json - 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 - /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: Deploy to Kubernetes:
stage: deploy stage: deploy
image: alpine image: alpine
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment