Skip to content

Commit ab0e620

Browse files
committed
suppressions tests cache
1 parent bfab8f8 commit ab0e620

2 files changed

Lines changed: 11 additions & 21 deletions

File tree

.github/workflows/ci.yml

Lines changed: 9 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -67,23 +67,20 @@ jobs:
6767
functional:
6868
name: "Functional tests"
6969
runs-on: ubuntu-22.04
70-
permissions:
71-
packages: write
7270

7371
steps:
7472
- uses: actions/checkout@v4
7573

76-
- name: Log in to GitHub Container Registry
77-
uses: docker/login-action@v3
74+
- name: Cache Docker images.
75+
uses: AndreKurait/docker-cache@0.6.0
7876
with:
79-
registry: ghcr.io
80-
username: ${{ github.actor }}
81-
password: ${{ secrets.GITHUB_TOKEN }}
82-
83-
- name: Build docker compose
84-
run: docker compose build --push apachephp dbtest apachephptest
85-
env:
86-
REGISTRY_URL: ghcr.io/afup/web
77+
key: |
78+
docker-${{ runner.os }}-${{ hashFiles(
79+
'compose.yml',
80+
'docker/dockerfiles/apachephp/Dockerfile',
81+
'docker/dockerfiles/mysql/Dockerfile',
82+
'docker/dockerfiles/mysqltest/Dockerfile'
83+
) }}
8784
8885
- name: Delete symfony cache
8986
run: rm -rf var/cache/test

compose.yml

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,7 @@ services:
1111
- ./data/mysql:/var/lib/mysql
1212

1313
dbtest:
14-
build:
15-
context: ./docker/dockerfiles/mysqltest
16-
cache_from:
17-
- ${REGISTRY_URL:-local}/dbtest:${IMAGE_TAG:-latest}
18-
image: ${REGISTRY_URL:-local}/dbtest:${IMAGE_TAG:-latest}
14+
build: ./docker/dockerfiles/mysqltest
1915
environment:
2016
MYSQL_ROOT_PASSWORD: root
2117
MYSQL_USER: afup
@@ -54,9 +50,6 @@ services:
5450
uid: ${CURRENT_UID:-1001}
5551
gid: "1001"
5652
ENABLE_XDEBUG: ${ENABLE_XDEBUG:-false}
57-
cache_from:
58-
- ${REGISTRY_URL:-local}/apachephptest:${IMAGE_TAG:-latest}
59-
image: ${REGISTRY_URL:-local}/apachephptest:${IMAGE_TAG:-latest}
6053
environment:
6154
SYMFONY_ENV: "test"
6255
APP_ENV: "test"
@@ -83,4 +76,4 @@ services:
8376
statictestresources:
8477
image: nginx:1.25.4
8578
volumes:
86-
- ./docker/dockerfiles/statictestresources:/usr/share/nginx/html:ro
79+
- ./docker/dockerfiles/statictestresources:/usr/share/nginx/html:ro

0 commit comments

Comments
 (0)