Enable jpip server in the composition #42
Workflow file for this run
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: Container Build | |
on: | |
pull_request: | |
branches: [ "main" ] | |
jobs: | |
build-dev: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
submodules: 'recursive' | |
- name: Build containers | |
run: docker compose build | |
- name: Get latest api version | |
run: cd api && git checkout origin/main | |
- name: Get latest helioviewer.org version | |
run: cd helioviewer.org && git checkout origin/main | |
- name: Make writeable configuration files | |
run: | | |
touch api/install/settings/settings.cfg | |
chmod o+rw api/install/settings/settings.cfg | |
touch api/settings/Config.ini | |
chmod o+rw api/settings/Config.ini | |
touch api/settings/Config.php | |
chmod o+rw api/settings/Config.php | |
- name: Check that containers start and become healthy | |
run: docker compose up -d --wait | |
build-prod: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
submodules: 'recursive' | |
- name: Copy production test configuration files | |
run: | | |
mkdir secrets && cd secrets | |
echo "${{ secrets.API_CONFIG }}" | base64 -d > Config.ini | |
echo "${{ secrets.API_PRIVATE }}" | base64 -d > Private.php | |
echo "${{ secrets.API_SETTINGS }}" | base64 -d > settings.cfg | |
echo "${{ secrets.CONFIG_JS }}" | base64 -d > Config.js | |
echo "${{ secrets.DB_PASSWORD }}" | base64 -d > mariadb_password | |
echo "${{ secrets.HEADLESS_SETUP }}" | base64 -d > headless_setup.sh | |
- name: Build production containers | |
run: | | |
export TAG=$(git rev-parse --short "$GITHUB_SHA") | |
docker compose -f compose.prod.yaml build | |
- name: Check that production containers start and become healthy | |
run: | | |
export TAG=$(git rev-parse --short "$GITHUB_SHA") | |
docker compose -f compose.prod.yaml up -d --wait |