You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@grails.apache.org by ja...@apache.org on 2025/05/22 19:10:48 UTC
(grails-forge) branch 7.0.x updated: Update next-gcp-deploy.yml
This is an automated email from the ASF dual-hosted git repository.
jamesfredley pushed a commit to branch 7.0.x
in repository https://gitbox.apache.org/repos/asf/grails-forge.git
The following commit(s) were added to refs/heads/7.0.x by this push:
new 2e52e34 Update next-gcp-deploy.yml
2e52e34 is described below
commit 2e52e34c92eb111c9772a210a5f62e5bf275b3ec
Author: James Fredley <ja...@users.noreply.github.com>
AuthorDate: Thu May 22 15:10:44 2025 -0400
Update next-gcp-deploy.yml
---
.github/workflows/next-gcp-deploy.yml | 12 +++++++++---
1 file changed, 9 insertions(+), 3 deletions(-)
diff --git a/.github/workflows/next-gcp-deploy.yml b/.github/workflows/next-gcp-deploy.yml
index f1f7f4c..2a17fc3 100644
--- a/.github/workflows/next-gcp-deploy.yml
+++ b/.github/workflows/next-gcp-deploy.yml
@@ -47,8 +47,12 @@ jobs:
project_id: ${{ secrets.GCP_PROJECT_ID }}
service_account_email: ${{ secrets.GCP_EMAIL }}
service_account_key: ${{ secrets.GCP_CREDENTIALS }}
- - name: "🐋 Configure Docker"
- run: gcloud auth configure-docker --quiet
+ - name: Set up Cloud SDK
+ uses: google-github-actions/setup-gcloud@v2
+ with:
+ project_id: ${{ secrets.GCP_PROJECT_ID }}
+ - name: "🐋 Configure Docker for Artifact Registry"
+ run: gcloud auth configure-docker us-docker.pkg.dev --quiet
- name: "📥 Checkout repository"
uses: actions/checkout@v4
- name: "☕️ Setup JDK"
@@ -72,10 +76,12 @@ jobs:
./gradlew
grails-forge-web-netty:dockerBuildNative
-PdockerImageName=${{ env.IMAGE_NAME }}
+ - name: "Push Container"
+ run: |
+ docker push ${{ env.IMAGE_NAME }}
- name: "🚀 Deploy Docker image"
run: >
gcloud run deploy ${{ secrets.GCP_PROJECT_ID }}-next
- --source grails-forge-web-netty/build/docker/native-main/DockerfileNative
--image $IMAGE_NAME
--region us-central1
--update-env-vars=HOSTNAME="next.grails.org",CORS_ALLOWED_ORIGIN="https://start.grails.org",GITHUB_OAUTH_APP_CLIENT_ID=${{ secrets.GH_OAUTH_SNAPSHOT_CLIENT_ID }},GITHUB_OAUTH_APP_CLIENT_SECRET=${{ secrets.GH_OAUTH_SNAPSHOT_CLIENT_SECRET }},GITHUB_USER_AGENT=${{ secrets.GH_USER_AGENT }},GITHUB_REDIRECT_URL=${{ secrets.GH_REDIRECT_URL }}