88 test :
99 runs-on : ubuntu-latest
1010 steps :
11- - uses : actions/checkout@v3
11+ - uses : actions/checkout@v4
1212
1313 - name : Set up Node.js
14- uses : actions/setup-node@v3
14+ uses : actions/setup-node@v4
1515 with :
1616 node-version : " 18"
1717 cache : " npm"
@@ -30,30 +30,30 @@ jobs:
3030 id-token : " write"
3131
3232 steps :
33- - uses : actions/checkout@v3
33+ - uses : actions/checkout@v4
3434
3535 - id : " auth"
3636 name : " Authenticate to Google Cloud"
37- uses : " google-github-actions/auth@v1 "
37+ uses : " google-github-actions/auth@v2 "
3838 with :
3939 workload_identity_provider : " projects/${{ secrets.PROJECT_NUMBER }}/locations/global/workloadIdentityPools/github-pool/providers/github-provider"
4040 service_account : " github-actions@${{ secrets.PROJECT_ID }}.iam.gserviceaccount.com"
4141
4242 - name : Set up Cloud SDK
43- uses : google-github-actions/setup-gcloud@v1
43+ uses : google-github-actions/setup-gcloud@v2
4444
4545 - name : Configure Docker
46- run : gcloud auth configure-docker
46+ run : gcloud auth configure-docker europe-west3-docker.pkg.dev
4747
4848 - name : Build and Push Docker image
4949 run : |
50- docker build -t gcr.io /${{ secrets.PROJECT_ID }}/store-sweeper:${{ github.sha }} .
51- docker push gcr.io /${{ secrets.PROJECT_ID }}/store-sweeper:${{ github.sha }}
50+ docker build -t europe-west3-docker.pkg.dev /${{ secrets.PROJECT_ID }}/cloud-run /store-sweeper:${{ github.sha }} .
51+ docker push europe-west3-docker.pkg.dev /${{ secrets.PROJECT_ID }}/cloud-run /store-sweeper:${{ github.sha }}
5252
5353 - name : Deploy to Cloud Run
5454 run : |
5555 gcloud run deploy store-sweeper \
56- --image gcr.io /${{ secrets.PROJECT_ID }}/store-sweeper:${{ github.sha }} \
56+ --image europe-west3-docker.pkg.dev /${{ secrets.PROJECT_ID }}/cloud-run /store-sweeper:${{ github.sha }} \
5757 --platform managed \
5858 --region europe-west3 \
5959 --project ${{ secrets.PROJECT_ID }} \
0 commit comments