-
Notifications
You must be signed in to change notification settings - Fork 0
65 lines (59 loc) · 1.77 KB
/
ci.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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
name: CI
on:
push:
branches: [ main ]
pull_request:
release:
types: [ published ]
jobs:
config-deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
ref: ${{ github.head_ref }}
- run: pipx install poetry==1.6.1
- uses: actions/setup-python@v4
with:
python-version: '3.11'
cache: 'poetry'
- run: poetry install
# Build config using tiptenbrink/confspawn
- name: Config
run: |
poetry run confrecipe -r build/deploy/dev/dev.toml -e localdev
poetry run confrecipe -r build/deploy/staging/staging.toml -e staging
poetry run confrecipe -r build/deploy/production/production.toml -e production
poetry run confrecipe -r build/data_sync/data_sync.toml -e production
poetry run confrecipe -r build/deploy/repl/repl.toml -e production
- uses: stefanzweifel/git-auto-commit-action@v4
if: github.event_name != 'pull_request'
with:
commit_message: Config build (automated)
file_pattern: use/
build_db:
# if: ${{ false }}
strategy:
matrix:
target: ['localdev', 'staging' ]
uses: DSAV-Dodeka/dodeka/.github/workflows/db.yml@main
with:
env: ${{ matrix.target }}
build_server:
# if: ${{ false }}
strategy:
matrix:
target: [ 'localdev', 'staging' ]
uses: DSAV-Dodeka/dodeka/.github/workflows/server.yml@main
with:
env: ${{ matrix.target }}
secrets:
GH_DODEKACOMCOM_TOKEN: ${{ secrets.GH_DODEKACOMCOM_TOKEN }}
build_kv:
# if: ${{ false }}
strategy:
matrix:
target: [ 'localdev', 'staging' ]
uses: DSAV-Dodeka/dodeka/.github/workflows/kv.yml@main
with:
env: ${{ matrix.target }}