Skip to content

Commit 05054f3

Browse files
committed
Update CI to use docker-compose v2
1 parent 5882671 commit 05054f3

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

.github/workflows/ci.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ jobs:
4040
run: |
4141
cp .env.sample .env
4242
mkdir -p ${DOCSRS_PREFIX}/public-html
43-
docker-compose up -d db
43+
docker compose up -d db
4444
# Give the database enough time to start up
4545
sleep 5
4646
# Make sure the database is actually working
@@ -61,7 +61,7 @@ jobs:
6161
-- --all-targets --all-features
6262
6363
- name: Clean up the database
64-
run: docker-compose down --volumes
64+
run: docker compose down --volumes
6565

6666
build:
6767
runs-on: ubuntu-latest
@@ -112,7 +112,7 @@ jobs:
112112
run: |
113113
cp .env.sample .env
114114
mkdir -p ${DOCSRS_PREFIX}/public-html
115-
docker-compose up -d db s3
115+
docker compose up -d db s3
116116
# Give the database enough time to start up
117117
sleep 5
118118
# Make sure the database is actually working
@@ -128,7 +128,7 @@ jobs:
128128
done
129129
130130
- name: Clean up the database
131-
run: docker-compose down --volumes
131+
run: docker compose down --volumes
132132

133133
GUI_test:
134134
runs-on: ubuntu-latest
@@ -147,7 +147,7 @@ jobs:
147147
run: |
148148
cp .env.sample .env
149149
mkdir -p ${DOCSRS_PREFIX}/public-html
150-
docker-compose up -d db s3
150+
docker compose up -d db s3
151151
# Give the database enough time to start up
152152
sleep 5
153153
# Make sure the database is actually working
@@ -157,7 +157,7 @@ jobs:
157157
run: ./dockerfiles/run-gui-tests.sh
158158

159159
- name: Clean up the database
160-
run: docker-compose down --volumes
160+
run: docker compose down --volumes
161161

162162
build_tests:
163163
runs-on: ubuntu-latest
@@ -176,7 +176,7 @@ jobs:
176176
run: |
177177
cp .env.sample .env
178178
mkdir -p ${DOCSRS_PREFIX}/public-html
179-
docker-compose up -d db s3
179+
docker compose up -d db s3
180180
# Give the database enough time to start up
181181
sleep 5
182182
# Make sure the database is actually working
@@ -194,7 +194,7 @@ jobs:
194194
done
195195
196196
- name: Clean up the database
197-
run: docker-compose down --volumes
197+
run: docker compose down --volumes
198198

199199
fmt:
200200
name: Rustfmt

dockerfiles/run-gui-tests.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
set -e
44

55
# Just in case it's running, we stop the web server.
6-
docker-compose stop web
6+
docker compose stop web
77

8-
docker-compose up -d db s3
8+
docker compose up --wait --wait-timeout 30 db s3
99

1010
# If we have a .env file, we need to temporarily move it so
1111
# it doesn't make sqlx fail compilation.
@@ -35,6 +35,6 @@ cargo run -- start-web-server &
3535
SERVER_PID=$!
3636

3737
# status="docker run . -v `pwd`:/build/out:ro gui_tests"
38-
docker-compose run gui_tests
38+
docker compose run gui_tests
3939
status=$?
4040
exit $status

0 commit comments

Comments
 (0)