forked from gooddata/gooddata-git-workflow-example
-
Notifications
You must be signed in to change notification settings - Fork 0
30 lines (30 loc) · 865 Bytes
/
cd.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
name: Continues Delivery
on:
push:
branches:
- 'main'
jobs:
push-to-production:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: '3.10'
cache: 'pip'
- name: Install dependencies
run: pip install -r requirements.txt
- name: Set up credentials.production.yaml
env:
DEMO_DS_PASSWORD: ${{ secrets.DEMO_DS_PASSWORD }}
run: |
echo "demo_ds: ${DEMO_DS_PASSWORD}" > credentials.production.yaml
- name: Update definitions in Production
env:
GD_ENV: production
GD_TOKEN: ${{ secrets.TOKEN }}
GD_HOST: ${{ secrets.HOST }}
run: python ./scripts/push.py
- name: Drop secret
run: rm credentials.production.yaml
if: always()