Skip to content

Commit 7b7d15d

Browse files
author
Bryan Sieber
committed
Updating GH Workflow
1 parent eb3f591 commit 7b7d15d

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

.github/workflows/build-image.yaml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,8 @@ jobs:
6969
docker image tag $GCR_REGISTRY:$IMAGE_TAG $GCR_REGISTRY:latest
7070
docker push $GCR_REGISTRY:$IMAGE_TAG
7171
docker push $GCR_REGISTRY:latest
72-
echo "::set-output name=build-tag::$GCR_REGISTRY:$IMAGE_TAG"
73-
echo "::debug::Set the build-tag output as $GCR_REGISTRY:$IMAGE_TAG"
72+
echo "::set-output name=build-tag::$IMAGE_TAG"
73+
echo "::debug::Set the build-tag output as $IMAGE_TAG"
7474
7575
deploy-image:
7676
runs-on: ubuntu-latest
@@ -83,10 +83,11 @@ jobs:
8383
uses: google-github-actions/auth@v0
8484
with:
8585
credentials_json: ${{ secrets.GCP_CREDENTIALS }}
86+
create_credentials_file: false
8687

8788
- name: Deploy to Cloud Run
8889
env:
89-
BUILD_TAG: ${{ needs.build-image.outputs.BUILD_TAG }}
90+
BUILD_TAG: gcr.io/${{ secrets.GCP_PROJECT_ID }}/${{ secrets.GCP_APP_NAME }}/${{ secrets.GCP_GCR_REPO }}:${{ needs.build-image.outputs.BUILD_TAG }}
9091
run: |
9192
gcloud run deploy ${{ secrets.GCP_APP_NAME }} \
9293
--image $BUILD_TAG \

0 commit comments

Comments
 (0)