updated pipeline to push saas image

This commit is contained in:
Dan Merron
2021-03-23 11:04:42 +00:00
parent c86a100575
commit 6af53ab82e
+12
View File
@@ -5,6 +5,7 @@ variables:
DOCKER_TLS_CERTDIR: ''
IMAGE_TAG: eu.gcr.io/vnc-development/vnc-hybridauth-api:development-$CI_COMMIT_SHORT_SHA
IMAGE_TAG_PROD: eu.gcr.io/vnc-dev-275609/vnc-hybridauth-api:production-$CI_COMMIT_SHORT_SHA
IMAGE_TAG_SAAS: eu.gcr.io/vnc-saas/vnc-hybridauth-api:saas-$CI_COMMIT_SHORT_SHA
services:
- docker:19.03.1-dind
@@ -30,3 +31,14 @@ docker-build-production-api:
- docker push $IMAGE_TAG_PROD
only:
- master
docker-build-saas-api:
before_script:
- base64 -d $SA_Saas | docker login -u _json_key --password-stdin https://eu.gcr.io
stage: build
script:
- cd docker
- docker build -t $IMAGE_TAG_SAAS .
- docker push $IMAGE_TAG_SAAS
only:
- master