2024-03-28 23:28:02 -08:00
|
|
|
name: ci
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
2025-02-13 12:49:05 -08:00
|
|
|
- "main"
|
2025-02-21 06:53:27 -08:00
|
|
|
paths:
|
|
|
|
- "apps/**"
|
|
|
|
- "services/**"
|
|
|
|
- "packages/**"
|
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-19 14:41:37 -08:00
|
|
|
with:
|
2025-02-19 15:56:11 -08:00
|
|
|
submodules: recursive
|
2024-03-28 23:28:02 -08:00
|
|
|
|
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
|
|
|
|
2025-02-21 19:33:39 -08:00
|
|
|
- name: Build futureporn/aquatic
|
2025-02-15 08:12:12 -08:00
|
|
|
uses: docker/build-push-action@v6
|
|
|
|
with:
|
2025-02-21 19:33:39 -08:00
|
|
|
context: ./apps/aquatic
|
|
|
|
file: ./apps/aquatic/docker/aquatic_udp.Dockerfile
|
2025-02-15 08:12:12 -08:00
|
|
|
push: true
|
2025-02-21 19:33:39 -08:00
|
|
|
tags: gitea.futureporn.net/futureporn/aquatic:latest
|
2025-02-10 08:16:50 -08:00
|
|
|
|
2025-02-21 19:33:39 -08:00
|
|
|
- name: Build futureporn/tracker
|
2025-02-15 08:12:12 -08:00
|
|
|
uses: docker/build-push-action@v6
|
2025-02-15 04:31:20 -08:00
|
|
|
with:
|
2025-02-21 19:33:39 -08:00
|
|
|
context: ./services/tracker
|
2025-02-15 08:12:12 -08:00
|
|
|
push: true
|
2025-02-21 19:33:39 -08:00
|
|
|
tags: gitea.futureporn.net/futureporn/tracker:latest
|
|
|
|
labels: |
|
|
|
|
org.opencontainers.image.description=Aquatic tracker with custom helper service, adding info_hash accesslist operations via HTTP
|
|
|
|
org.opencontainers.image.title=tracker
|
|
|
|
org.opencontainers.image.licenses=unlicense
|
|
|
|
org.opencontainers.image.source=https://gitea.futureporn.net/futureporn/fp
|
|
|
|
org.opencontainers.image.url=https://gitea.futureporn.net/futureporn/-/packages/container/tracker
|
|
|
|
secrets: |
|
|
|
|
TRACKER_HELPER_USERNAME=${{ secrets.TRACKER_HELPER_USERNAME }}
|
|
|
|
TRACKER_HELPER_PASSWORD=${{ secrets.TRACKER_HELPER_PASSWORD }}
|
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
|
2025-02-19 13:09:53 -08:00
|
|
|
labels: |
|
|
|
|
org.opencontainers.image.description=The Galaxy's Best VTuber hentai site
|
|
|
|
org.opencontainers.image.title=bright
|
|
|
|
org.opencontainers.image.created={{commit_date 'YYYY-MM-DDTHH:mm:ss.SSS[Z]'}}
|
|
|
|
org.opencontainers.image.version={{version}}
|
|
|
|
org.opencontainers.image.licenses=unlicense
|
|
|
|
org.opencontainers.image.source=https://gitea.futureporn.net/futureporn/fp
|
|
|
|
org.opencontainers.image.url=https://gitea.futureporn.net/futureporn/-/packages/container/bright
|