Skip to content

Commit

Permalink
gcr as build step
Browse files Browse the repository at this point in the history
  • Loading branch information
Sumukh committed Feb 6, 2016
1 parent b2a7c27 commit 3343c94
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions wercker.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
box: python:3.5
box: python:alpine
services:
- redis
build:
Expand All @@ -17,11 +17,12 @@ deploy:
name: gcr.io authentication
code: |
echo $GCLOUD_SERVICE_ACCOUNT > ok-server-test.json
gcloud auth activate-refresh-token $GCLOUD_ACCOUNT --key-file ok-server-test.json
cat ok-server-test.json
gcloud auth activate-service-account $GCLOUD_ACCOUNT --key-file ok-server-test.json
rm ok-server-test.json
gcloud docker --authorize-only
export GCR_AUTH_TOKEN=$(cat $HOME/.dockercfg | jq --raw-output '.["https://gcr.io"].auth' | base64 --decode | cut -d ':' -f2)
- internal/docker-push:
- gcr.io:
username: _json_key
password: $GCR_AUTH_TOKEN
repository: gcr.io/ok-server/ok-v3-web
Expand Down

0 comments on commit 3343c94

Please sign in to comment.