feat: gateway service

This commit is contained in:
alyssa 2024-09-14 12:19:47 +09:00
parent 1118d8bdf8
commit e4ed354536
50 changed files with 1737 additions and 545 deletions

View file

@ -3,16 +3,18 @@
# todo: don't use docker/build-push-action
# todo: run builds on pull request
name: Build and push API Docker image
name: Build and push Rust service Docker images
on:
push:
branches:
- main
paths:
- 'lib/libpk/**'
- 'services/api/**'
- 'services/gateway/**'
- '.github/workflows/rust.yml'
- 'Dockerfile.rust'
- 'Dockerfile.bin'
- 'Cargo.toml'
- 'Cargo.lock'
jobs:
deploy:
@ -45,7 +47,7 @@ jobs:
# add more binaries here
- run: |
for binary in "api"; do
for binary in "api" "gateway"; do
for tag in latest ${{ env.BRANCH_NAME }} ${{ github.sha }}; do
cat Dockerfile.bin | sed "s/__BINARY__/$binary/g" | docker build -t ghcr.io/pluralkit/$binary:$tag -f - .
done