From a2e33cc09bca338de3add7c44e5d6f0dd0e5f4ac Mon Sep 17 00:00:00 2001 From: Bart Geesink Date: Tue, 27 Aug 2024 08:30:17 +0200 Subject: [PATCH] GHA: Create the sqllite database as user www-data, so it is writable by the webserver --- .github/workflows/test-integration-webtest.yml | 3 ++- .github/workflows/test-integration.yml | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test-integration-webtest.yml b/.github/workflows/test-integration-webtest.yml index 92b56013b..5b3d5ff19 100644 --- a/.github/workflows/test-integration-webtest.yml +++ b/.github/workflows/test-integration-webtest.yml @@ -14,6 +14,7 @@ jobs: env: DOCKER_COMPOSE: PHP_MEMORY_LIMIT=265M docker compose -f docker-compose.yml -f docker-compose-ci.yml DOCKER_COMPOSE_PHP: docker compose -f docker-compose.yml -f docker-compose-ci.yml exec -T spdashboard + DOCKER_RUN_SPD_AS_WWW: docker exec --user 33:33 sp-dashboard-spdashboard-1 steps: - name: Check out the repo @@ -56,7 +57,7 @@ jobs: - name: Get the database up and running working-directory: spdashboard run: | - ${DOCKER_COMPOSE_PHP} bin/console doctrine:schema:create + ${DOCKER_RUN_SPD_AS_WWW} bin/console doctrine:schema:create env: APP_ENV: test diff --git a/.github/workflows/test-integration.yml b/.github/workflows/test-integration.yml index 77e58b368..599871c09 100644 --- a/.github/workflows/test-integration.yml +++ b/.github/workflows/test-integration.yml @@ -15,6 +15,7 @@ jobs: DOCKER_COMPOSE: docker compose -f docker-compose.yml -f docker-compose-ci.yml DOCKER_COMPOSE_PHP: docker compose -f docker-compose.yml -f docker-compose-ci.yml exec -T spdashboard DOCKER_COMPOSE_CYPRESS: docker compose -f docker-compose.yml -f docker-compose-ci.yml exec -T cypress + DOCKER_RUN_SPD_AS_WWW: docker exec --user 33:33 sp-dashboard-spdashboard-1 steps: - name: Check out the repo @@ -61,7 +62,7 @@ jobs: - name: Get the database up and running working-directory: spdashboard run: | - ${DOCKER_COMPOSE_PHP} bin/console doctrine:schema:create + ${DOCKER_RUN_SPD_AS_WWW} bin/console doctrine:schema:create env: APP_ENV: test