Skip to content

Commit 6b65fe0

Browse files
committed
Fixed docker permissions in GHA.
1 parent fe4d1fd commit 6b65fe0

31 files changed

Lines changed: 60 additions & 48 deletions

File tree

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,12 @@ defaults:
5454
run:
5555
shell: bash
5656

57+
# Workaround for the Actions runner creating /root/.docker/config.json
58+
# with permissions that prevent the container from reading it.
59+
# https://github.com/actions/runner/issues/863
60+
env:
61+
DOCKER_CONFIG: /tmp/.docker
62+
5763
jobs:
5864

5965
lint:

.vortex/installer/tests/Fixtures/handler_process/_baseline/.github/workflows/build-test-deploy.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,12 @@ defaults:
4949
run:
5050
shell: bash
5151

52+
# Workaround for the Actions runner creating /root/.docker/config.json
53+
# with permissions that prevent the container from reading it.
54+
# https://github.com/actions/runner/issues/863
55+
env:
56+
DOCKER_CONFIG: /tmp/.docker
57+
5258
jobs:
5359

5460
lint:

.vortex/installer/tests/Fixtures/handler_process/db_download_source_acquia/.github/workflows/build-test-deploy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
@@ -233,6 +233,9 @@
1+
@@ -239,6 +239,9 @@
22
VORTEX_DOWNLOAD_DB_SEMAPHORE=/tmp/download-db-success ./scripts/vortex/download-db.sh
33
echo "db_hash=${{ hashFiles('.data') }}" >> "$GITHUB_ENV"
44
timeout-minutes: 30

.vortex/installer/tests/Fixtures/handler_process/deploy_types_none_gha/.github/workflows/build-test-deploy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
@@ -459,79 +459,3 @@
1+
@@ -465,79 +465,3 @@
22
timeout-minutes: 120 # Cancel the action after 15 minutes, regardless of whether a connection has been established.
33
with:
44
detached: true

.vortex/installer/tests/Fixtures/handler_process/hosting_acquia/.github/workflows/build-test-deploy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
@@ -233,6 +233,9 @@
1+
@@ -239,6 +239,9 @@
22
VORTEX_DOWNLOAD_DB_SEMAPHORE=/tmp/download-db-success ./scripts/vortex/download-db.sh
33
echo "db_hash=${{ hashFiles('.data') }}" >> "$GITHUB_ENV"
44
timeout-minutes: 30

.vortex/installer/tests/Fixtures/handler_process/hosting_project_name___acquia/.github/workflows/build-test-deploy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
@@ -233,6 +233,9 @@
1+
@@ -239,6 +239,9 @@
22
VORTEX_DOWNLOAD_DB_SEMAPHORE=/tmp/download-db-success ./scripts/vortex/download-db.sh
33
echo "db_hash=${{ hashFiles('.data') }}" >> "$GITHUB_ENV"
44
timeout-minutes: 30

.vortex/installer/tests/Fixtures/handler_process/migration_download_source_acquia/.github/workflows/build-test-deploy.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
@@ -234,6 +234,9 @@
1+
@@ -240,6 +240,9 @@
22
echo "db_hash=${{ hashFiles('.data') }}" >> "$GITHUB_ENV"
33
timeout-minutes: 30
44

@@ -8,7 +8,7 @@
88
- name: Export DB
99
run: |
1010
if [ ! -f /tmp/download-db-success ]; then echo "==> Database download semaphore file is missing. DB export will not proceed."; exit 0; fi
11-
@@ -356,6 +359,10 @@
11+
@@ -362,6 +365,10 @@
1212
if [ -f .data/db.sql ]; then
1313
docker compose exec cli mkdir -p .data
1414
docker compose cp -L .data/db.sql cli:/app/.data/db.sql

.vortex/installer/tests/Fixtures/handler_process/migration_download_source_ftp/.github/workflows/build-test-deploy.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
@@ -234,6 +234,9 @@
1+
@@ -240,6 +240,9 @@
22
echo "db_hash=${{ hashFiles('.data') }}" >> "$GITHUB_ENV"
33
timeout-minutes: 30
44

@@ -8,7 +8,7 @@
88
- name: Export DB
99
run: |
1010
if [ ! -f /tmp/download-db-success ]; then echo "==> Database download semaphore file is missing. DB export will not proceed."; exit 0; fi
11-
@@ -356,6 +359,10 @@
11+
@@ -362,6 +365,10 @@
1212
if [ -f .data/db.sql ]; then
1313
docker compose exec cli mkdir -p .data
1414
docker compose cp -L .data/db.sql cli:/app/.data/db.sql

.vortex/installer/tests/Fixtures/handler_process/migration_download_source_lagoon/.github/workflows/build-test-deploy.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
@@ -234,6 +234,9 @@
1+
@@ -240,6 +240,9 @@
22
echo "db_hash=${{ hashFiles('.data') }}" >> "$GITHUB_ENV"
33
timeout-minutes: 30
44

@@ -8,7 +8,7 @@
88
- name: Export DB
99
run: |
1010
if [ ! -f /tmp/download-db-success ]; then echo "==> Database download semaphore file is missing. DB export will not proceed."; exit 0; fi
11-
@@ -356,6 +359,10 @@
11+
@@ -362,6 +365,10 @@
1212
if [ -f .data/db.sql ]; then
1313
docker compose exec cli mkdir -p .data
1414
docker compose cp -L .data/db.sql cli:/app/.data/db.sql

.vortex/installer/tests/Fixtures/handler_process/migration_download_source_s3/.github/workflows/build-test-deploy.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
@@ -234,6 +234,9 @@
1+
@@ -240,6 +240,9 @@
22
echo "db_hash=${{ hashFiles('.data') }}" >> "$GITHUB_ENV"
33
timeout-minutes: 30
44

@@ -8,7 +8,7 @@
88
- name: Export DB
99
run: |
1010
if [ ! -f /tmp/download-db-success ]; then echo "==> Database download semaphore file is missing. DB export will not proceed."; exit 0; fi
11-
@@ -356,6 +359,10 @@
11+
@@ -362,6 +365,10 @@
1212
if [ -f .data/db.sql ]; then
1313
docker compose exec cli mkdir -p .data
1414
docker compose cp -L .data/db.sql cli:/app/.data/db.sql

0 commit comments

Comments
 (0)