chore: add GitHub Actions

This commit is contained in:
Paul Pan 2024-02-19 13:22:02 +08:00
parent 7b6f98d67a
commit 95039f9cb3
Signed by: Paul
GPG Key ID: D639BDF5BA578AF4

29
.github/workflows/docker.yml vendored Normal file
View File

@ -0,0 +1,29 @@
name: Build Docker Image
on: [ push ]
jobs:
image:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Login to Container Registry
uses: docker/login-action@v3
with:
registry: git.0x7f.app
username: ${{ secrets.CONTAINER_USERNAME }}
password: ${{ secrets.CONTAINER_PASSWORD }}
- name: Write Sentry DSN
run: echo -n "$SENTRY_DSN" > dsn.txt
with:
SENTRY_DSN: ${{ secrets.SENTRY_DSN }}
- name: Build Base Image
run: ./build_image.sh base
with:
DOCKER: docker
- name: Build Server Image
run: ./build_image.sh server
with:
DOCKER: docker
- name: Build Runner Image
run: ./build_image.sh runner
with:
DOCKER: docker