diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index a6de045..8b0df58 100755 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -19,13 +19,13 @@ jobs: steps: - name: Set up Go 1.x - uses: actions/setup-go@v2 + uses: actions/setup-go@v5 with: go-version: ^1.13 id: go - name: Check out code into the Go module directory - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Get dependencies run: | @@ -47,13 +47,17 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v4 + + # Authenticate to Google Cloud with the service account key + - id: auth + uses: google-github-actions/auth@v2 + with: + credentials_json: ${{ secrets.RUN_SA_KEY }} # Setup gcloud CLI - - uses: GoogleCloudPlatform/github-actions/setup-gcloud@master + - uses: google-github-actions/setup-gcloud@v2 with: - version: '290.0.1' - service_account_key: ${{ secrets.RUN_SA_KEY }} project_id: ${{ secrets.GOOGLE_CLOUD_RUN_PROJECT }} # Build and push image to Google Container Registry