Skip to content

Commit 373ab3e

Browse files
committed
Update test environment to tag Docker images on build
1 parent c0a1f36 commit 373ab3e

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

.github/workflows/ci.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -105,8 +105,8 @@ jobs:
105105
with:
106106
php-version: 8.5
107107
- run: composer install -d tests/integration/
108-
- run: docker build -f tests/integration/${{ matrix.dockerfile }} tests/integration/
109-
- run: docker run -d -p 8080:8080 -v "$PWD/composer.json":/app/composer.json $(docker images -q | head -n1)
108+
- run: docker build -t fx -f tests/integration/${{ matrix.dockerfile }} tests/integration/
109+
- run: docker run -d -p 8080:8080 -v "$PWD/composer.json":/app/composer.json fx
110110
- run: bash tests/await.bash
111111
- run: bash tests/integration.bash
112112
- run: docker stop $(docker ps -qn1)
@@ -129,8 +129,8 @@ jobs:
129129
with:
130130
php-version: 8.5
131131
- run: composer install -d tests/integration/
132-
- run: docker build -f tests/integration/Dockerfile-basics tests/integration/
133-
- run: docker run -d -p 8080:8080 -v "$PWD/composer.json":/app/composer.json $(docker images -q | head -n1)
132+
- run: docker build -t fx -f tests/integration/Dockerfile-basics tests/integration/
133+
- run: docker run -d -p 8080:8080 -v "$PWD/composer.json":/app/composer.json fx
134134
- run: docker run -d --net=host -v "$PWD/tests/integration/":/home/framework-x/ -v "$PWD"/tests/integration/${{ matrix.config.path }}:/etc/nginx/conf.d/default.conf nginx:stable-alpine
135135
- run: bash tests/await.bash http://localhost/
136136
- run: bash tests/integration.bash http://localhost/

0 commit comments

Comments
 (0)