pre-create named volume
This commit is contained in:
parent
aa10432755
commit
79d7831ef8
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user