This is an automated email from the ASF dual-hosted git repository.

jamesfredley pushed a commit to branch docker-file-direct-deploy
in repository https://gitbox.apache.org/repos/asf/grails-forge.git

commit 05e3ca56f6f77525fa7847ca0b12ca87924ae26f
Author: James Fredley <[email protected]>
AuthorDate: Tue May 20 13:11:44 2025 -0400

    attempt to deploy local docker file directly
    
    skip publishing to container registry
---
 .github/workflows/next-gcp-deploy.yml | 11 ++---------
 1 file changed, 2 insertions(+), 9 deletions(-)

diff --git a/.github/workflows/next-gcp-deploy.yml 
b/.github/workflows/next-gcp-deploy.yml
index 8cdc5a1..72f4b34 100644
--- a/.github/workflows/next-gcp-deploy.yml
+++ b/.github/workflows/next-gcp-deploy.yml
@@ -72,17 +72,10 @@ jobs:
           ./gradlew
           grails-forge-web-netty:dockerBuildNative
           -PdockerImageName=${{ env.IMAGE_NAME }}
-      - name: "🚀 Migrate to GCP Artifact Registry"
-        run: gcloud artifacts docker upgrade migrate --projects='${{ 
secrets.GCP_PROJECT_ID }}'
-      - name: "📤 Push image to Google Cloud Container Registry"
-        run: >
-          ./gradlew
-          grails-forge-web-netty:dockerPushNative
-          -PdockerImageName=${{ env.IMAGE_NAME }}
       - name: "🚀 Deploy Docker image"
         run: >
           gcloud run deploy ${{ secrets.GCP_PROJECT_ID }}-next
-          --image $IMAGE_NAME
+          --source 
grails-forge-web-netty/build/docker/native-main/DockerfileNative
           --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 }}
           --platform managed
@@ -131,4 +124,4 @@ jobs:
       - name: "🚀 Deploy Docker image"
         run: |
           gcloud components install beta --quiet
-          gcloud run deploy ${{ secrets.GCP_PROJECT_ID }}-analytics-next 
--image $IMAGE_NAME --region us-central1 --platform managed 
--allow-unauthenticated --service-account=${{ secrets.GCLOUD_EMAIL }}
\ No newline at end of file
+          gcloud run deploy ${{ secrets.GCP_PROJECT_ID }}-analytics-next 
--image $IMAGE_NAME --region us-central1 --platform managed 
--allow-unauthenticated --service-account=${{ secrets.GCLOUD_EMAIL }}

Reply via email to