diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index d92c423..85aa189 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -41,7 +41,7 @@ jobs: - name: Fetch application.properties from Secret Manager run: | - gcloud secrets versions access latest --secret="magnus-staging-properties" --project=${{ env.PROJECT_ID }} > /workspace/application.properties + gcloud secrets versions access latest --secret="magnus-staging-properties" --project=${{ env.PROJECT_ID }} > $GITHUB_WORKSPACE/application.properties - name: Deploy to Cloud Run run: | @@ -51,7 +51,7 @@ jobs: --platform managed \ --allow-unauthenticated \ --no-traffic - --set-env-vars SPRING_CONFIG_LOCATION="file:/workspace/application.properties" \ + --set-env-vars SPRING_CONFIG_LOCATION="file:/$GITHUB_WORKSPACE/application.properties" \ --timeout=600s # Extend to 10 minutes if needed - name: Shift traffic to new revision