From 79d7831ef87f32c62bd5df1b99256306c9d9f2dc Mon Sep 17 00:00:00 2001 From: CJ_Clippy Date: Fri, 21 Feb 2025 06:51:14 -0800 Subject: [PATCH] pre-create named volume --- .gitea/workflows/tests.yaml | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/.gitea/workflows/tests.yaml b/.gitea/workflows/tests.yaml index fd2a17d..38dedc8 100644 --- a/.gitea/workflows/tests.yaml +++ b/.gitea/workflows/tests.yaml @@ -19,6 +19,11 @@ jobs: # this causes issues because nektos/act will not be able to find test-db:5432 but act_runner can. # this means we have inconsistent behavior across testing environments, which is bad. # our workaround is to use localhost on local dev, and the dns name on gitea act_runner. + create_volumes: + runs-on: ubuntu-22.04 + steps: + - run: | + docker volume ls | grep -q aquatic || docker volume create aquatic test_phoenix: env: @@ -42,10 +47,10 @@ jobs: DB_PASS: ${{ secrets.DB_PASS }} name: Tests & Checks runs-on: ubuntu-22.04 - container: - image: catthehacker/ubuntu:act-22.04 - volumes: - - aquatic:/var/lib/aquatic + # container: + # image: catthehacker/ubuntu:act-22.04 + # volumes: + # - aquatic:/var/lib/aquatic timeout-minutes: 20 permissions: contents: read @@ -77,8 +82,7 @@ jobs: WL_PASSWORD: ${{ secrets.WL_PASSWORD }} WL_PORT: 5063 volumes: - - /var/lib/aquatic:/var/lib/aquatic - - /var/run/docker.sock:/var/run/docker.sock + - aquatic:/var/lib/aquatic aquatic: image: gitea.futureporn.net/futureporn/aquatic:latest