File tree 2 files changed +6
-2
lines changed
2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -33,11 +33,15 @@ jobs:
33
33
with :
34
34
path : /tmp/docker-save
35
35
key : ${{ runner.os }}-docker-php-build-save-${{ hashFiles('build/Dockerfile.php.common', 'build/Dockerfile.php81') }}
36
+
36
37
- name : Load cached Docker image
37
38
run : docker load -i /tmp/docker-save/snapshot.tar && docker tag app/php-image-cache app/php
39
+ if : steps.docker-php-image-cache.outputs.cache-hit == 'true'
38
40
39
41
- name : Docker boot
40
42
env :
43
+ DOCKER_BUILDKIT : ' 1'
44
+ COMPOSE_DOCKER_CLI_BUILD : ' 1'
41
45
SERVICES_NAME : " app.php"
42
46
run : docker-compose up -d $SERVICES_NAME
43
47
Original file line number Diff line number Diff line change @@ -40,12 +40,12 @@ jobs:
40
40
env :
41
41
DOCKER_BUILDKIT : ' 1'
42
42
COMPOSE_DOCKER_CLI_BUILD : ' 1'
43
- SERVICES_NAME : " app.php mysql80 "
43
+ SERVICES_NAME : " app.php"
44
44
run : docker-compose up --force-recreate -d $SERVICES_NAME
45
45
timeout-minutes : 3
46
46
47
47
- name : Wait for all services to become healthy
48
- run : for SVC in "app.php" "mysql80" ; do while [ "\"healthy\"" != "$(docker inspect --format '{{json .State.Health.Status }}' ${SVC})" ];do docker-compose ps && sleep 5; done; done
48
+ run : for SVC in "app.php"; do while [ "\"healthy\"" != "$(docker inspect --format '{{json .State.Health.Status }}' ${SVC})" ];do docker-compose ps && sleep 5; done; done
49
49
timeout-minutes : 3
50
50
51
51
- name : Sleep
You can’t perform that action at this time.
0 commit comments