Skip to content

Commit

Permalink
new docker authentication
Browse files Browse the repository at this point in the history
  • Loading branch information
Salva Corts committed Mar 15, 2018
1 parent 63c956b commit 3f1731d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions build-and-deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ gcloud --quiet config set project $PROJECT_NAME
gcloud --quiet config set compute/zone $CLOUDSDK_COMPUTE_ZONE

# Configure Docker to access Google Container Registry
gcloud components install docker-credential-gcr
docker-credential-gcr configure-docker --token-source="gcloud"
echo $GCR_SERVICE_KEY | base64 --decode -i > ./gcr-creds.json
docker login -u _json_key -p "$(cat ./gcr-creds.json)" https://gcr.io

# Build Backend
cd Backend/
Expand Down

0 comments on commit 3f1731d

Please sign in to comment.