Skip to content

change to use the tmeplate file for all structs #15

change to use the tmeplate file for all structs

change to use the tmeplate file for all structs #15

name: Deploy to Google Cloud Run
on:
push:
branches: [ "main" ]
env:
PROJECT_ID: musikapi-418715
SERVICE: golang-gin
REGION: europe-west1
jobs:
deploy:
# Add 'id-token' with the intended permissions for workload identity federation
permissions:
contents: 'read'
id-token: 'write'
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Google Auth
id: auth
uses: 'google-github-actions/auth@v2'
with:
credentials_json: '${{ secrets.GCP_CREDENTIALS }}'
- name: Create Env File
run: |
echo "$secret" > .env
rm -f .gitignore
env:
secret: ${{ secrets.env }}
- name: Deploy to Cloud Run
id: deploy
uses: google-github-actions/deploy-cloudrun@v2
with:
service: ${{ env.SERVICE }}
region: ${{ env.REGION }}
skip_default_labels: true
source: ./
# If required, use the Cloud Run url output in later steps
- name: Show Output
run: echo ${{ steps.deploy.outputs.url }}