2024-03-28 23:28:02 -08:00
|
|
|
name: ci
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
2025-02-13 12:49:05 -08:00
|
|
|
- "main"
|
2024-03-28 23:28:02 -08:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
2024-03-29 00:03:12 -08:00
|
|
|
environment: docker
|
2024-03-28 23:28:02 -08:00
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v3
|
|
|
|
name: Check out code
|
|
|
|
|
2025-02-15 08:12:12 -08:00
|
|
|
- name: Login to Gitea Docker Registry
|
|
|
|
uses: docker/login-action@v3
|
2024-08-01 11:16:35 -08:00
|
|
|
with:
|
|
|
|
registry: gitea.futureporn.net
|
2024-03-28 23:28:02 -08:00
|
|
|
username: ${{ secrets.DOCKER_USERNAME }}
|
|
|
|
password: ${{ secrets.DOCKER_PASSWORD }}
|
2025-02-15 08:12:12 -08:00
|
|
|
|
|
|
|
- name: Build futureporn/tracker-helper
|
|
|
|
uses: docker/build-push-action@v6
|
|
|
|
with:
|
|
|
|
context: ./services/tracker-helper
|
|
|
|
push: true
|
|
|
|
tags: gitea.futureporn.net/futureporn/tracker-helper:latest
|
|
|
|
secrets: |
|
|
|
|
WL_CREDENTIALS=${{ secrets.WL_CREDENTIALS }}
|
2025-02-15 06:43:42 -08:00
|
|
|
env:
|
|
|
|
WL_CREDENTIALS: ${{ secrets.WL_CREDENTIALS }}
|
|
|
|
WL_FIFO_PATH: /tmp/adder.fifo
|
|
|
|
WL_FILE_PATH: /usr/src/app/test/fixtures/whitelist
|
2025-02-10 08:16:50 -08:00
|
|
|
|
2025-02-15 08:12:12 -08:00
|
|
|
- name: Build futureporn/opentracker
|
|
|
|
uses: docker/build-push-action@v6
|
2025-02-15 04:31:20 -08:00
|
|
|
with:
|
2025-02-15 08:12:12 -08:00
|
|
|
context: ./apps/opentracker
|
|
|
|
push: true
|
|
|
|
tags: gitea.futureporn.net/futureporn/opentracker:latest
|
2025-02-15 04:31:20 -08:00
|
|
|
|
2025-02-15 08:12:12 -08:00
|
|
|
- name: Build futureporn/bright
|
|
|
|
uses: docker/build-push-action@v6
|
2025-02-10 08:16:50 -08:00
|
|
|
with:
|
2025-02-15 08:12:12 -08:00
|
|
|
context: ./apps/bright
|
|
|
|
push: true
|
|
|
|
tags: gitea.futureporn.net/futureporn/bright:latest
|
|
|
|
build-args: |
|
|
|
|
MIX_ENV=prod
|