From 8457a97c5fd4c2769e056ccecc2a9a0c927d05dd Mon Sep 17 00:00:00 2001 From: Caleb Burke Date: Fri, 26 Jun 2026 19:20:00 -0700 Subject: [PATCH] Build and publish --- .gitea/workflows/build-and-publish.yml | 32 ++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 .gitea/workflows/build-and-publish.yml diff --git a/.gitea/workflows/build-and-publish.yml b/.gitea/workflows/build-and-publish.yml new file mode 100644 index 0000000..8704e5c --- /dev/null +++ b/.gitea/workflows/build-and-publish.yml @@ -0,0 +1,32 @@ +name: Build and Push Docker Image + +on: + push: + branches: + - main + +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Log in to Gitea Container Registry + uses: docker/login-action@v3 + with: + registry: ${{ vars.GITEA_URL }} + username: ${{ secrets.REGISTRY_USER }} + password: ${{ secrets.REGISTRY_TOKEN }} + + - name: Build and push + uses: docker/build-push-action@v6 + with: + context: . + push: true + tags: | + ${{ vars.GITEA_URL }}/${{ github.repository }}:latest + ${{ vars.GITEA_URL }}/${{ github.repository }}:${{ github.sha }} + build-args: | + RELEASE_TAG=${{ github.ref_name }} + GIT_COMMIT_HASH=${{ github.sha }}