Deploy to Cloud Run using deploy-cloudrun
mainThe deploy-cloudrun GitHub Action automates the deployment of container images or source code to Google Cloud Run. Once the deployment is complete, the resulting service URL is provided as a GitHub Actions output, allowing you to use it in subsequent workflow steps (e.g., for integration testing or notifications).
- id: 'deploy'
uses: 'google-github-actions/deploy-cloudrun@v3'
with:
service: 'hello-cloud-run'
image: 'us-docker.pkg.dev/cloudrun/container/hello:latest'
- name: 'Use output'
run: 'curl "${{ steps.deploy.outputs.url }}"'