Welcome message has been changed #4
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: cloudrun-deploy-production | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
build: | |
name: 'Cloud Run Production Deployment' | |
runs-on: ubuntu-latest | |
steps: | |
- name: 'Checkout' | |
uses: actions/checkout@v4 | |
- name: 'Configure authentication to GCP' | |
uses: google-github-actions/auth@v2 | |
with: | |
credentials_json: '${{ secrets.GCP_SERVICE_ACCOUNT_SECRET }}' | |
project_id: ${{ secrets.GCP_PROJECT_ID }} | |
- name: 'Set up GCP SDK' | |
uses: google-github-actions/setup-gcloud@v2 | |
- name: 'Configure Docker' | |
run: make gcloud-docker-init | |
- name: 'Build' | |
env: | |
GCP_PROJECT_ID: ${{ secrets.GCP_PROJECT_ID }} | |
ENVIRONMENT: 'production' | |
run: make gcloud-docker-build | |
- name: 'Push' | |
env: | |
GCP_PROJECT_ID: ${{ secrets.GCP_PROJECT_ID }} | |
ENVIRONMENT: 'production' | |
run: make gcloud-docker-push | |
- name: 'Deploy' | |
env: | |
GCP_PROJECT_ID: ${{ secrets.GCP_PROJECT_ID }} | |
ENVIRONMENT: 'production' | |
run: make gcloud-run-deploy |