set pipeline

This commit is contained in:
Victor Barba Martin 2021-08-10 19:50:19 +02:00
parent b4f1938b62
commit 1f3d34a623
1 changed files with 2 additions and 2 deletions

View File

@ -57,8 +57,8 @@ pipelines:
- docker load --input "autoscaler-${BITBUCKET_REPO_SLUG}.tar"
- docker load --input "coturn-dns-${BITBUCKET_REPO_SLUG}.tar"
- VERSION="prod-0.1.${BITBUCKET_BUILD_NUMBER}"
- docker tag "autoscaler-${BITBUCKET_REPO_SLUG}.tar" "gcr.io/${GCLOUD_PROJECT}/autoscaler:${VERSION}"
- docker tag "coturn-dns-${BITBUCKET_REPO_SLUG}.tar" "gcr.io/${GCLOUD_PROJECT}/coturn-dns:${VERSION}"
- docker tag "autoscaler-${BITBUCKET_REPO_SLUG}" "gcr.io/${GCLOUD_PROJECT}/autoscaler:${VERSION}"
- docker tag "coturn-dns-${BITBUCKET_REPO_SLUG}" "gcr.io/${GCLOUD_PROJECT}/coturn-dns:${VERSION}"
# Login to google docker hub
- cat ./gcloud-api-key.json | docker login -u _json_key --password-stdin https://gcr.io
- docker push "gcr.io/${GCLOUD_PROJECT}/autoscaler:${VERSION}"