feat(docker-monolithic): external database support #210
This file contains hidden or 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: docker monolithic install | |
| on: | |
| pull_request: | |
| paths: | |
| - templates/docker-monolithic/**/* | |
| defaults: | |
| run: | |
| working-directory: ./templates/docker-monolithic | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 10 | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v7 | |
| - name: Shellcheck | |
| run: | | |
| docker run --rm \ | |
| -v "${PWD}:/v" \ | |
| -w "/v" \ | |
| koalaman/shellcheck \ | |
| -e SC1091 -e SC1117 \ | |
| *.sh | |
| - name: docker compose config test | |
| run: | | |
| echo "" > .env | |
| docker compose config | |
| - name: install supportpal | |
| run: | | |
| bash setup.sh --local -n --host "http://localhost" --email "kieran@supportpal.com" | |
| docker compose up -d | |
| sudo apt install -y expect | |
| expect verify-install.exp | |
| sleep 60 | |
| curl -fSL -o /tmp/test.txt http://localhost/ | |
| if ! grep -q "SupportPal" /tmp/test.txt; then | |
| echo "ERROR: SupportPal is not loading via HTTP" | |
| exit 3 | |
| fi | |
| env: | |
| SUPPORTPAL_LICENSE_KEY: "${{ secrets.SUPPORTPAL_MONO_LICENSE_KEY }}" | |
| - name: test backup/restore | |
| run: | | |
| bash backup.sh | |
| sleep 60 | |
| expect verify-restore.exp |