Commit f72d603a authored by Alexey Gobzhelyan's avatar Alexey Gobzhelyan
Browse files

UA-1676 Use docker.insign.rocks/devops/insign_k8s_kubectl:latest image with...

UA-1676 Use docker.insign.rocks/devops/insign_k8s_kubectl:latest image with credential to connect to k8s insign cluster
parent a746299f
Pipeline #12758 passed with stages
in 6 minutes and 8 seconds
image: atlassian/pipelines-kubectl
stages:
- build
- deploy
variables:
REGISTRY_HOST: docker.insign.rocks
APP_IMAGE: blocklygames/blocklygames-app:${CI_COMMIT_REF_NAME}
before_script:
- docker login -u ${REGISTRY_USER} -p ${REGISTRY_PASSWORD} ${REGISTRY_HOST}
build:
stage: build
script:
- docker build -t ${REGISTRY_HOST}/${APP_IMAGE} -f devops/docker/app/Dockerfile .
- docker push ${REGISTRY_HOST}/${APP_IMAGE}
- docker login -u ${REGISTRY_USER} -p ${REGISTRY_PASSWORD} docker.insign.rocks
- docker build -t docker.insign.rocks/blocklygames/blocklygames-app:${CI_COMMIT_REF_NAME} -f devops/docker/app/Dockerfile .
- docker push ${REGISTRY_HOST}/blocklygames/blocklygames-app:${CI_COMMIT_REF_NAME}
only:
- master
deploy_production:
stage: deploy
image: docker.insign.rocks/devops/insign_k8s_kubectl:latest
script:
- kubectl apply -n blocklygames -f devops/k8s/deployment-app.yaml
only:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment