From 0f1b0b109eb17ea198b1ff51d8bd04b575d11d89 Mon Sep 17 00:00:00 2001 From: Ruslan Bakiev Date: Wed, 7 Jan 2026 09:26:08 +0700 Subject: [PATCH] Add Gitea Actions CI/CD workflow --- .gitea/workflows/build.yaml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .gitea/workflows/build.yaml diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/build.yaml new file mode 100644 index 0000000..5ab61d0 --- /dev/null +++ b/.gitea/workflows/build.yaml @@ -0,0 +1,31 @@ +name: Build Docker Image + +on: + push: + branches: [main] + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v3 + + - name: Login to Gitea Registry + uses: docker/login-action@v3 + with: + registry: gitea.dsrptlab.com + username: ${{ gitea.actor }} + password: ${{ secrets.REGISTRY_TOKEN }} + + - name: Build and Push + uses: docker/build-push-action@v5 + with: + context: . + push: true + tags: gitea.dsrptlab.com/optovia/kyc/kyc:latest + + - name: Deploy to Dokploy + run: curl -X POST ${{ secrets.DOKPLOY_WEBHOOK }}