From 9539c193c663f02699aadfa040e86c193e1f3991 Mon Sep 17 00:00:00 2001 From: Anton Vakhrushev Date: Fri, 9 Jan 2026 13:51:35 +0300 Subject: [PATCH] chore(build): add docker image build workflow --- .gitea/workflows/docker.yml | 39 +++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 .gitea/workflows/docker.yml diff --git a/.gitea/workflows/docker.yml b/.gitea/workflows/docker.yml new file mode 100644 index 0000000..45c5235 --- /dev/null +++ b/.gitea/workflows/docker.yml @@ -0,0 +1,39 @@ +name: docker-release + +on: + push: + tags: + - 'v*' + +jobs: + build-and-push: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v6 + + - name: Set up Go + uses: actions/setup-go@v6 + with: + go-version: '1.25.5' + + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v3 + + - name: Login to Yandex Cloud Container Registry + uses: docker/login-action@v3 + with: + registry: cr.yandex + username: oauth + password: ${{ secrets.YANDEX_CLOUD_OAUTH_TOKEN }} + + - name: Build and push + uses: docker/build-push-action@v6 + with: + context: . + file: ./Dockerfile + push: true + tags: | + cr.yandex/${{ secrets.YANDEX_CLOUD_REGISTRY_ID }}/trackers:${{ github.ref_name }} + cr.yandex/${{ secrets.YANDEX_CLOUD_REGISTRY_ID }}/trackers:latest + platforms: linux/amd64