From e5f732c8ab939fb370318a417cfcb12593247378 Mon Sep 17 00:00:00 2001 From: Pascal Grimaud Date: Fri, 16 Aug 2024 13:51:31 +0200 Subject: [PATCH] GCP: add app.yaml --- .github/workflows/deploy.yml | 8 ++++++++ app.yaml | 11 +++++++++++ 2 files changed, 19 insertions(+) create mode 100644 app.yaml diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 0e337914b64..3305840151d 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -14,6 +14,14 @@ jobs: - name: 'Setup: checkout project' uses: actions/checkout@v4 + # Substitutes the variables/secrets + - uses: microsoft/variable-substitution@v1 + with: + files: '${{ github.workspace }}/app.yaml' + env: + env_variables.GCP_PROJECT_ID: ${{ secrets.GCP_PROJECT_ID }} + env_variables.GCP_REGION: ${{ secrets.GCP_REGION }} + # Setup Google Cloud - name: Authenticate to Google Cloud uses: 'google-github-actions/auth@v1' diff --git a/app.yaml b/app.yaml new file mode 100644 index 00000000000..3615856fe6c --- /dev/null +++ b/app.yaml @@ -0,0 +1,11 @@ +runtime: custom +env: flex +resources: + cpu: 1 + memory_gb: 4.0 + disk_size_gb: 10 +manual_scaling: + instances: 1 +env_variables: + GCP_PROJECT_ID: + GCP_REGION: