-
Notifications
You must be signed in to change notification settings - Fork 2
42 lines (35 loc) · 1.16 KB
/
gcloud-app-deploy.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
name: Google Cloud App Engine deploy
on:
push:
branches: ["main"]
jobs:
production-deploy:
if: github.repository == 'PJECZ/pjecz-carina-api-key'
runs-on: ubuntu-latest
permissions:
contents: "read"
id-token: "write"
steps:
- name: "Check out the repository"
uses: "actions/checkout@v3"
- name: "Setup Python 3.11"
uses: "actions/setup-python@v4"
with:
python-version: '3.11'
- name: "Create requirements.txt from pyproject.toml with Poetry"
run: |
pip install 'poetry>=2.0.1'
poetry self add poetry-plugin-export
poetry export -f requirements.txt --output requirements.txt --without-hashes
- name: "Authenticate"
uses: "google-github-actions/auth@v1"
with:
workload_identity_provider: ${{ secrets.GCP_WORKLOAD_IDENTITY_PROVIDER }}
service_account: ${{ secrets.GCP_SA_KEY }}
- name: "Deploy"
uses: "google-github-actions/deploy-appengine@v1"
with:
project_id: ${{ secrets.GCP_PROJECT_ID }}
deliverables: "app.yaml"
working_directory: "."
promote: true