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 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.
|
# 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.
|
# 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:
|
test_phoenix:
|
||||||
env:
|
env:
|
||||||
@ -42,10 +47,10 @@ jobs:
|
|||||||
DB_PASS: ${{ secrets.DB_PASS }}
|
DB_PASS: ${{ secrets.DB_PASS }}
|
||||||
name: Tests & Checks
|
name: Tests & Checks
|
||||||
runs-on: ubuntu-22.04
|
runs-on: ubuntu-22.04
|
||||||
container:
|
# container:
|
||||||
image: catthehacker/ubuntu:act-22.04
|
# image: catthehacker/ubuntu:act-22.04
|
||||||
volumes:
|
# volumes:
|
||||||
- aquatic:/var/lib/aquatic
|
# - aquatic:/var/lib/aquatic
|
||||||
timeout-minutes: 20
|
timeout-minutes: 20
|
||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: read
|
||||||
@ -77,8 +82,7 @@ jobs:
|
|||||||
WL_PASSWORD: ${{ secrets.WL_PASSWORD }}
|
WL_PASSWORD: ${{ secrets.WL_PASSWORD }}
|
||||||
WL_PORT: 5063
|
WL_PORT: 5063
|
||||||
volumes:
|
volumes:
|
||||||
- /var/lib/aquatic:/var/lib/aquatic
|
- aquatic:/var/lib/aquatic
|
||||||
- /var/run/docker.sock:/var/run/docker.sock
|
|
||||||
|
|
||||||
aquatic:
|
aquatic:
|
||||||
image: gitea.futureporn.net/futureporn/aquatic:latest
|
image: gitea.futureporn.net/futureporn/aquatic:latest
|
||||||
|
Loading…
x
Reference in New Issue
Block a user