-
Notifications
You must be signed in to change notification settings - Fork 27
43 lines (35 loc) · 988 Bytes
/
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
name: CI
on:
push:
branches: [master]
pull_request:
branches: [master]
jobs:
test-prod:
name: '[Prod] Test docker compose'
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- name: Prepare config
# Rebuild the worker image instead of using getindico/indico:latest
run: |
cd indico-prod
pip install yq
~/.local/bin/yq '. | .services["indico-web"].build = "./worker"' docker-compose.yml > docker-compose.local.yml
- name: Build containers
run: |
cd indico-prod
docker compose -f docker-compose.local.yml build
- name: Test if Indico works
run: ./test.sh prod
test-dev:
name: '[Dev] Test docker compose'
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- name: Build containers
run: |
cd indico-dev
docker compose build
- name: Test if Indico works
run: ./test.sh dev