Skip to content

Commit

Permalink
Fix docker compose
Browse files Browse the repository at this point in the history
  • Loading branch information
alexyao2015 authored Aug 6, 2024
1 parent a5c0828 commit 7fd9ff7
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/docker-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -162,34 +162,34 @@ jobs:
run: |
set -x
cd testsautomated
docker-compose up &
docker compose up &
sleep 60
if [ ! "$(docker ps -q -f name=zoneminder)" ]; then
exit 1
fi
docker-compose down
docker-compose up &
docker compose down
docker compose up &
sleep 60
docker-compose down
docker compose down
# Fails if zoneminder fails to stop normally
- name: Start image and stop zoneminder
timeout-minutes: 5
run: |
set -x
cd testsautomated
docker-compose up &
docker compose up &
sleep 60
docker stop zoneminder
docker-compose down
docker compose down
# Fails if zoneminder doesn't stop when db is down
- name: Start image and stop db
timeout-minutes: 5
run: |
set -x
cd testsautomated
docker-compose up &
docker compose up &
sleep 120
docker stop db
sleep 60
Expand Down

0 comments on commit 7fd9ff7

Please sign in to comment.