pre-create named volume
Some checks failed
ci / build (push) Has been cancelled
ci / create_volumes (push) Successful in 18s
ci / Tests & Checks (push) Failing after 8s

This commit is contained in:
CJ_Clippy 2025-02-21 06:51:14 -08:00
parent aa10432755
commit 79d7831ef8

View File

@ -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