From 3227a9eb54dd35e894bc8ba8e967bd734e0ecc68 Mon Sep 17 00:00:00 2001 From: Tim Yates Date: Wed, 18 Sep 2024 13:40:19 +0100 Subject: [PATCH] Still not sure why it fails --- .github/workflows/gradle-build-develop.yml | 2 ++ .github/workflows/gradle-deploy-native-develop.yml | 6 ++---- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/gradle-build-develop.yml b/.github/workflows/gradle-build-develop.yml index 929d19f46..5e8498deb 100644 --- a/.github/workflows/gradle-build-develop.yml +++ b/.github/workflows/gradle-build-develop.yml @@ -41,6 +41,8 @@ jobs: path: ~/.gradle/caches key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }} restore-keys: ${{ runner.os }}-gradle + - name: '🐳 Setup Gradle' + uses: gradle/actions/setup-gradle@v4 - name: '🐳 Validate Gradle Wrapper' uses: gradle/wrapper-validation-action@e6e38bacfdf1a337459f332974bb2327a31aaf4b diff --git a/.github/workflows/gradle-deploy-native-develop.yml b/.github/workflows/gradle-deploy-native-develop.yml index 08c90e42a..49d0cfa75 100644 --- a/.github/workflows/gradle-deploy-native-develop.yml +++ b/.github/workflows/gradle-deploy-native-develop.yml @@ -43,7 +43,7 @@ jobs: project_id: 'oci-intern-2019' workload_identity_provider: 'projects/832140020593/locations/global/workloadIdentityPools/github/providers/my-repo' - name: 'Set up Cloud SDK' - uses: 'google-github-actions/setup-gcloud@v2' + uses: google-github-actions/setup-gcloud@v2 with: version: '>= 363.0.0' - name: 'Auth Configure Docker' @@ -54,9 +54,7 @@ jobs: env: VITE_APP_API_URL: ${{ env.URL }} - name: '🐳 Push the Docker image to Google Container Registry' - run: |- - cd server - docker push "gcr.io/$PROJECT_ID/$SERVICE_NAME:$GITHUB_SHA" + run: docker push "gcr.io/$PROJECT_ID/$SERVICE_NAME:$GITHUB_SHA" - name: '🏃 Deploy image to Cloud Run' run: |- gcloud run deploy "$SERVICE_NAME" \