diff --git a/.gitea/workflows/docker.yml b/.gitea/workflows/docker.yml deleted file mode 100644 index 45c5235..0000000 --- a/.gitea/workflows/docker.yml +++ /dev/null @@ -1,39 +0,0 @@ -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 diff --git a/.gitea/workflows/release.yml b/.gitea/workflows/release.yml index 7d4110c..1dbf33f 100644 --- a/.gitea/workflows/release.yml +++ b/.gitea/workflows/release.yml @@ -6,6 +6,7 @@ on: - 'v*' jobs: + goreleaser: runs-on: ubuntu-latest steps: @@ -15,7 +16,7 @@ jobs: - name: Setup Go uses: actions/setup-go@v6 with: - go-version: '1.25.5' + go-version: 'go.mod' - name: Run GoReleaser uses: goreleaser/goreleaser-action@v6 @@ -25,3 +26,30 @@ jobs: args: release --clean env: GITEA_TOKEN: '${{ secrets.RELEASE_TOKEN }}' + + docker-image: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v6 + + - 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: + file: ./Dockerfile + context: . + 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 \ No newline at end of file