show env vars
Some checks failed
ci / Tests & Checks (push) Failing after 8m57s

This commit is contained in:
CJ_Clippy 2025-02-21 09:48:38 -08:00
parent 803dcbb1f2
commit ed13626f83
2 changed files with 32 additions and 19 deletions

View File

@ -18,13 +18,9 @@ jobs:
# when we are working with nektos/act, we must use the IP address of the service container. # when we are working with nektos/act, we must use the IP address of the service container.
# 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 reference service containers two different ways.
create_volumes: # - when running nektos/act on localhost, we reference the service as localhost:<port_number>.
name: Create Docker Volumes # - when running gitea act_runner on gitea, we reference the service's dns name.
runs-on: ubuntu-22.04
steps:
- run: |
docker volume ls | grep -q aquatic || docker volume create aquatic
test_phoenix: test_phoenix:
env: env:
@ -78,7 +74,6 @@ jobs:
tracker-helper: tracker-helper:
image: gitea.futureporn.net/futureporn/tracker-helper:latest image: gitea.futureporn.net/futureporn/tracker-helper:latest
# options: --volumes-from ${{ env.JOB_CONTAINER_NAME }}
ports: ports:
- 5063:5063 - 5063:5063
env: env:
@ -135,6 +130,14 @@ jobs:
# with: # with:
# args: /usr/bin/pg_isready --host test-db --port 5432 # args: /usr/bin/pg_isready --host test-db --port 5432
- name: show the env
run: |
env | sort
# - name: show the JOB_CONTAINER_ID
# run:
# options: --volumes-from ${{ env.JOB_CONTAINER_NAME }}
- name: Setup FFmpeg - name: Setup FFmpeg
uses: FedericoCarboni/setup-ffmpeg@v3 uses: FedericoCarboni/setup-ffmpeg@v3

View File

@ -1,18 +1,27 @@
services: services:
opentracker: aquatic:
build: build:
context: ./apps/opentracker context: ./apps/aquatic
container_name: opentracker
environment:
- WHITELIST_FEED_URL=http://bright:4000/torrents
env_file:
- .kamal/secrets.development
ports: ports:
- "6969:6969/tcp" - "3003:3003/udp"
- "6969:6969/udp" - "9000:9000/tcp"
volumes: volumes:
- opentracker-etc:/etc/opentracker - aquatic
# opentracker:
# build:
# context: ./apps/opentracker
# container_name: opentracker
# environment:
# - WHITELIST_FEED_URL=http://bright:4000/torrents
# env_file:
# - .kamal/secrets.development
# ports:
# - "6969:6969/tcp"
# - "6969:6969/udp"
# volumes:
# - opentracker-etc:/etc/opentracker
# qbittorrent: # qbittorrent:
# build: # build:
@ -117,4 +126,5 @@ volumes:
pg_data: pg_data:
redis_data: redis_data:
cache: cache:
opentracker-etc: opentracker-etc:
aquatic: