Skip to content

wb docker-compose-actions-workflow #1408

wb docker-compose-actions-workflow

wb docker-compose-actions-workflow #1408

Workflow file for this run

name: wb docker-compose-actions-workflow
on:
push:
branches:
- 'main'
pull_request:
schedule:
- cron: '30 5 * * *'
jobs:
build:
runs-on: ubuntu-latest
environment: staging
steps:
-
name: Checkout
uses: actions/checkout@v2
with:
submodules: 'recursive'
-
name: Prepare the build
run: cp mediawiki/template.env ./.env
-
name: Build the stack
env:
MW_ADMIN_PASS: ${{ secrets.MW_ADMIN_PASS }}
DB_PASS: ${{ secrets.DB_PASS }}
WIKIBASE_HOST: ${{ secrets.WIKIBASE_HOST}}
WIKIBASE_PORT: ${{ secrets.WIKIBASE_PORT}}
WDQS_FRONTEND_HOST: ${{ secrets.WDQS_FRONTEND_HOST}}
WDQS_FRONTEND_PORT: ${{ secrets.WDQS_FRONTEND_PORT}}
QUICKSTATEMENTS_HOST: ${{ secrets.QUICKSTATEMENTS_HOST}}
QUICKSTATEMENTS_PORT: ${{ secrets.QUICKSTATEMENTS_PORT}}
WB_PUBLIC_HOST_AND_PORT: ${{ secrets.WB_PUBLIC_HOST_AND_PORT}}
QS_PUBLIC_HOST_AND_PORT: ${{ secrets.QS_PUBLIC_HOST_AND_PORT}}
run: >
MW_ADMIN_PASS=${{ secrets.MW_ADMIN_PASS }}
DB_PASS=${{ secrets.DB_PASS }}
docker compose -f docker-compose.yml -f docker-compose-extra.yml -f docker-compose-ci.yml up -d
# pauses CI execution and prints a temporary ssh url to the server for debugging
#-
# name: Setup tmate session
# uses: mxschmitt/action-tmate@v3
# Disable tests temporarily, cf. https://github.com/MaRDI4NFDI/portal-compose/issues/429
# -
# name: Give docker compose time to start
# run: sleep 200
# actually, it would be better to have the selenium container wait for the other containers
#-
# name: Test using Selenium
# run: docker exec mardi-selenium bash ./start_test_runner.sh test
#-
# name: Test backups
# run: docker exec mardi-backup bash /test/test_backup.sh