From bdb0e79f13d253c62a49128c7c4394eff5fa55d9 Mon Sep 17 00:00:00 2001 From: ptrslvk Date: Fri, 30 Jan 2026 14:14:42 +0100 Subject: [PATCH] Add .gitea/workflow/build.yml --- .gitea/workflow/build.yml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 .gitea/workflow/build.yml diff --git a/.gitea/workflow/build.yml b/.gitea/workflow/build.yml new file mode 100644 index 0000000..886184f --- /dev/null +++ b/.gitea/workflow/build.yml @@ -0,0 +1,32 @@ +name: Docker Build + +on: + push: + branches: + - 'main' # Adjust to your default branch name + +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v3 + + - name: Login to Gitea Container Registry + uses: docker/login-action@v3 + with: + registry: ${{ gitea.server_url }} + username: ${{ gitea.actor }} + password: ${{ secrets.GITHUB_TOKEN }} + + - name: Build and push + uses: docker/build-push-action@v5 + with: + context: . + push: true + tags: | + ${{ gitea.server_url }}/${{ gitea.repository }}:latest + ${{ gitea.server_url }}/${{ gitea.repository }}:${{ gitea.sha }} \ No newline at end of file