Skip to content

Commit

Permalink
GCP: add app.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
pascalgrimaud committed Aug 16, 2024
1 parent bc96070 commit e5f732c
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
11 changes: 11 additions & 0 deletions app.yaml
Original file line number Diff line number Diff line change
@@ -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:

0 comments on commit e5f732c

Please sign in to comment.