Push container to owner fork of Indico #1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: | |
push: | |
branches: [master] | |
pull_request: | |
branches: [master] | |
jobs: | |
test: | |
name: 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 |