From 3898a198bd7aeebd708a807e5477e7ae276d4142 Mon Sep 17 00:00:00 2001 From: Tanishq Dubey Date: Sat, 15 Mar 2025 19:49:12 -0400 Subject: [PATCH] add testing builds --- .gitea/workflows/release.yml | 30 +++++++++++++++++++++++++++++- 1 file changed, 29 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/release.yml b/.gitea/workflows/release.yml index 041f934..9421b42 100644 --- a/.gitea/workflows/release.yml +++ b/.gitea/workflows/release.yml @@ -3,6 +3,9 @@ name: Release on: release: types: [published] + push: + branches: + - main jobs: build: @@ -41,4 +44,29 @@ jobs: context: . push: ${{ github.event_name != 'pull_request' }} tags: ${{ steps.meta.outputs.tags }} - labels: ${{ steps.meta.outputs.labels }} \ No newline at end of file + labels: ${{ steps.meta.outputs.labels }} + + publish_head: + runs-on: ubuntu-latest + if: github.ref == 'refs/heads/main' + + steps: + - name: Checkout code + uses: actions/checkout@v2 + + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v1 + + - name: Login to Gitea Container Registry + uses: docker/login-action@v2 + with: + registry: git.dws.rip + username: ${{ github.actor }} + password: ${{ secrets.GLOBAL_KEY }} + + - name: Build and push "head" image + uses: docker/build-push-action@v4 + with: + context: . + push: true + tags: git.dws.rip/${{ github.repository }}:head \ No newline at end of file