From f26f424603acfd715885fa33590ade645a1f5691 Mon Sep 17 00:00:00 2001 From: Matthew Date: Mon, 29 Jun 2026 09:08:58 +0000 Subject: [PATCH] Add .gitea/workflows/build.yml --- .gitea/workflows/build.yml | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 .gitea/workflows/build.yml diff --git a/.gitea/workflows/build.yml b/.gitea/workflows/build.yml new file mode 100644 index 0000000..89acf47 --- /dev/null +++ b/.gitea/workflows/build.yml @@ -0,0 +1,35 @@ +name: Build and Push Docker Image + +on: + push: + branches: [master, main] + schedule: + # Rebuild daily to catch base image updates + - cron: '0 4 * * *' + workflow_dispatch: + +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v3 + + - name: Log in to Gitea Registry + uses: docker/login-action@v3 + with: + registry: git.cesium.pw + username: ${{ gitea.actor }} + password: ${{ secrets.GITEA_TOKEN }} + + - name: Build and push + uses: docker/build-push-action@v5 + with: + context: . + push: true + tags: | + git.cesium.pw/${{ gitea.repository }}:latest + git.cesium.pw/${{ gitea.repository }}:${{ gitea.sha }} \ No newline at end of file