-
Notifications
You must be signed in to change notification settings - Fork 3
57 lines (46 loc) · 1.29 KB
/
docker-monolithic-verify.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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
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: 4
steps:
- name: Checkout code
uses: actions/checkout@v4
- 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 "[email protected]"
docker compose up -d
sudo apt install -y expect
expect verify-install.exp
sleep 5
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
bash restore.sh