From 18388999e9e558a7966a0eb39f4e8bb735b29a3d Mon Sep 17 00:00:00 2001 From: Shishant Biswas Date: Sun, 15 Mar 2026 19:49:27 +0530 Subject: [PATCH] push image workflow --- .gitea/workflows/build-and-deploy.yml | 43 +++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 .gitea/workflows/build-and-deploy.yml diff --git a/.gitea/workflows/build-and-deploy.yml b/.gitea/workflows/build-and-deploy.yml new file mode 100644 index 0000000..3b25b0f --- /dev/null +++ b/.gitea/workflows/build-and-deploy.yml @@ -0,0 +1,43 @@ +name: Build and Push to Gitea Registry + +on: + push: + branches: [ "main" ] + +jobs: + build-and-push: + runs-on: ubuntu-latest + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Log in to Gitea Registry + uses: docker/login-action@v3 + with: + registry: gitea.bsws.in + username: ${{ github.actor }} + password: ${{ secrets.GITHUB_TOKEN }} + + - name: Set up QEMU + uses: docker/setup-qemu-action@v3 + + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v3 + + - name: Extract metadata + id: meta + uses: docker/metadata-action@v5 + with: + images: gitea.bsws.in/${{ github.repository }} + tags: | + type=raw,value=latest + type=sha + + - name: Build and push + uses: docker/build-push-action@v6 + with: + context: . + push: true + platforms: linux/amd64,linux/arm64 + tags: ${{ steps.meta.outputs.tags }} + labels: ${{ steps.meta.outputs.labels }} \ No newline at end of file