From fb8f40398cea4c09579a1a9ef6b45ca84c5d38dc Mon Sep 17 00:00:00 2001 From: ducoterra Date: Wed, 5 Aug 2026 18:34:25 -0400 Subject: [PATCH] add pipeline --- .gitea/workflows/build-push.yml | 41 +++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 .gitea/workflows/build-push.yml diff --git a/.gitea/workflows/build-push.yml b/.gitea/workflows/build-push.yml new file mode 100644 index 0000000..f9f8f7e --- /dev/null +++ b/.gitea/workflows/build-push.yml @@ -0,0 +1,41 @@ +name: Build and Push Container + +on: + push: + branches: + - main + release: + types: + - published + +jobs: + build-and-push: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Login to Gitea Container Registry + uses: docker/login-action@v3 + with: + registry: gitea.reeseapps.com + username: ${{ secrets.REGISTRY_USERNAME }} + password: ${{ secrets.REGISTRY_PASSWORD }} + + - name: Extract metadata + id: meta + uses: docker/metadata-action@v5 + with: + images: gitea.reeseapps.com/services/vibe-bot + tags: | + type=raw,value=main,enable=${{ github.ref == 'refs/heads/main' }} + type=ref,event=tag + + - name: Build and push + uses: docker/build-push-action@v6 + with: + context: . + file: ./Containerfile + push: true + tags: ${{ steps.meta.outputs.tags }} + labels: ${{ steps.meta.outputs.labels }}