Skip to content

Commit 31113b9

Browse files
committed
Update CI workflow
1 parent 9860c5e commit 31113b9

File tree

2 files changed

+13
-12
lines changed

2 files changed

+13
-12
lines changed

.github/workflows/ci.yml

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: CI
1+
name: Test docker image
22

33
on:
44
# Test every Tuesday at at 8:35 AM UTC
@@ -21,22 +21,23 @@ jobs:
2121
runs-on: ubuntu-latest
2222
steps:
2323
- name: Checkout
24-
uses: actions/checkout@v2
24+
uses: actions/checkout@v3
2525

2626
- name: Setting up Docker Buildx
2727
id: buildx
28-
uses: docker/setup-buildx-action@v1
28+
uses: docker/setup-buildx-action@v2
2929

3030
- name: Cache Docker layers
31-
uses: actions/cache@v2
31+
uses: actions/cache@v3
3232
with:
3333
path: /tmp/.buildx-cache
3434
key: ${{ runner.os }}-buildx-${{ github.sha }}
35-
restore-keys: ${{ runner.os }}-buildx-
35+
restore-keys: |
36+
${{ runner.os }}-buildx-
3637
3738
- name: Build test
3839
id: docker_test
39-
uses: docker/build-push-action@v2
40+
uses: docker/build-push-action@v3
4041
with:
4142
builder: ${{ steps.buildx.outputs.name }}
4243
cache-from: type=local,src=/tmp/.buildx-cache
@@ -52,9 +53,9 @@ jobs:
5253

5354
- name: Run with docker
5455
run: |
55-
docker-compose up -d
56-
sleep 15
57-
docker-compose ps
58-
docker-compose exec -T wp wp --info
56+
docker compose up -d
57+
sleep 20
58+
docker compose ps
59+
docker compose exec -T wp wp --info
5960
curl --fail -s http://127.0.0.1/wp-admin/install.php || exit 1
60-
docker-compose down
61+
docker compose down

docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ services:
7979
- ./app:/var/www/html
8080
healthcheck:
8181
test: ["CMD", "curl", "-fs", "-o", "/dev/null", "http://localhost:80/_health/nginx"]
82-
start_period: 20s
82+
start_period: 15s
8383
interval: 5s
8484
timeout: 3s
8585
retries: 5

0 commit comments

Comments
 (0)