-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (34 loc) · 1.09 KB
/
ploomber-cloud.yaml
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
name: Ploomber Cloud
on:
schedule:
- cron: '0 1 * * *'
jobs:
deploy-to-ploomber-cloud:
runs-on: ubuntu-latest
environment: production
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: '3.10'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install ploomber-cloud
- name: Create environment file
shell: bash
env:
SECRET_URL: ${{ secrets.SUPABASE_URL }}
SECRET_KEY: ${{ secrets.SUPABASE_KEY }}
run: |
printf "SUPABASE_URL=\"$SECRET_URL\"\nSUPABASE_KEY=\"$SECRET_KEY\"" > ./app/.env
- name: Deploy
env:
PLOOMBER_CLOUD_KEY: ${{ secrets.PLOOMBER_CLOUD_KEY }}
run: |
cd app/
cat .env
ploomber-cloud deploy --watch
# The --watch flag will print deployment status updates to the logs.
# To learn more, visit: https://docs.cloud.ploomber.io/en/latest/user-guide/github.html