Skip to content

Commit 5e727b4

Browse files
Use the docker CLI interface to have consistent image IDs
Signed-off-by: Christian Wolf <[email protected]>
1 parent 9b5e980 commit 5e727b4

File tree

3 files changed

+4
-0
lines changed

3 files changed

+4
-0
lines changed

.github/actions/run-tests/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,8 @@ The following options are available to manage the docker images:
5050

5151
Typically, one will use the `--create-images` flag which will pull any images and rebuild the existing images if anything has changed.
5252

53+
It is hightly suggested to set the environment variable `COMPOSE_DOCKER_CLI_BUILD` to `1`. This will avoid building the images from scratch as a online cached version (nightly build) can be used instead. If your setup does not break, you can simply call `export COMPOSE_DOCKER_CLI_BUILD=1` before the first invocation of `run-locally.sh` once in each terminal you open.
54+
5355
To push images credentials are needed. This is only required to speed up the the build prucess for other users. You will not have to do this unless you know exacly what it does.
5456

5557
### Handling the helper containers

.github/actions/run-tests/action.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ runs:
3838
export INPUT_DB=${{ inputs.db }} &&
3939
export PHP_VERSION=${{ inputs.phpVersion }} &&
4040
export HTTP_SERVER=${{ inputs.server }} &&
41+
export COMPOSE_DOCKER_CLI_BUILD=1 &&
4142
./run-locally.sh
4243
--pull
4344
--create-images

.github/workflows/build-test-images.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,5 +28,6 @@ jobs:
2828
| docker login
2929
--username ${{ secrets.DOCKER_HUB_USERNAME }}
3030
--password-stdin &&
31+
export COMPOSE_DOCKER_CLI_BUILD=1 &&
3132
PHP_VERSION=${{ matrix.phpVersion }}
3233
./run-locally.sh --pull --create-images --push-images

0 commit comments

Comments
 (0)