File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change 67
67
#
68
68
# - name: Push Docker image
69
69
# run: docker push $IMAGE_NAME
70
+ - name : Login to GCR
71
+ uses : docker/login-action@v1
72
+ with :
73
+ registry : gcr.io
74
+ username : _json_key
75
+ password : ${{ secrets.GCP_CREDENTIALS }}
70
76
71
77
- name : Build and push to GCR v2
72
78
id : build-push
83
89
"$GITHUB_SERVER_URL/$GITHUB_REPOSITORY/actions/runs/$GITHUB_RUN_ID" > ./version.json
84
90
docker build --file infra/Dockerfile -t $GCR_REGISTRY/$GCR_REPOSITORY:$IMAGE_TAG .
85
91
docker image tag $GCR_REGISTRY/$GCR_REPOSITORY:$IMAGE_TAG $GCR_REGISTRY/$GCR_REPOSITORY:latest
86
- echo $GCP_CREDENTIALS | docker login -u _json_key --password-stdin https://gcr.io
92
+ # echo ${{ secrets. GCP_CREDENTIALS }} | docker login -u _json_key --password-stdin https://gcr.io
87
93
docker push $GCR_REGISTRY/$GCR_REPOSITORY:$IMAGE_TAG
88
94
docker push $GCR_REGISTRY/$GCR_REPOSITORY:latest
You can’t perform that action at this time.
0 commit comments