From f4c047748de4c3f268e742f0bf853d8fd0e864a3 Mon Sep 17 00:00:00 2001 From: Roman Sotnikov Date: Sun, 22 Feb 2026 15:42:57 +0300 Subject: [PATCH 1/5] feat: add gh docker-image --- .github/workflows/release.yml | 38 +++++++++++++++++++++++++++++------ 1 file changed, 32 insertions(+), 6 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 1e8d5a0..9429f21 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -3,8 +3,8 @@ name: Release on: push: tags: - - '[0-9]+.[0-9]+.[0-9]+' # Matches tags like 3.0.0, 3.1.2, etc. - workflow_dispatch: # Manual trigger from GitHub Actions UI + - '[0-9]+.[0-9]+.[0-9]+' # Matches tags like 3.0.0, 3.1.2, etc. + workflow_dispatch: # Manual trigger from GitHub Actions UI permissions: contents: read @@ -84,6 +84,32 @@ jobs: target/${{ matrix.target }}/release/${{ matrix.asset_name }}.tar.gz target/${{ matrix.target }}/release/${{ matrix.asset_name }}.sha256 + build-docker-image: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v3 + + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v2 + + - name: Login to GitHub Container Registry + uses: docker/login-action@v2 + with: + registry: ghcr.io + username: ${{ github.repository_owner }} + password: ${{ secrets.TOKEN_GH_DEPLOY }} + + - name: Build and push + uses: docker/build-push-action@v3 + with: + context: . + platforms: linux/amd64,linux/arm64 + push: true + tags: | + ghcr.io/telemt/telemt:latest + ghcr.io/telemt/telemt:${{github.ref_name}} + release: name: Create Release needs: build @@ -108,17 +134,17 @@ jobs: # Extract version from tag (remove 'v' prefix if present) VERSION="${GITHUB_REF#refs/tags/}" VERSION="${VERSION#v}" - + # Install cargo-edit for version bumping cargo install cargo-edit - + # Update Cargo.toml version cargo set-version "$VERSION" - + # Configure git git config user.name "github-actions[bot]" git config user.email "github-actions[bot]@users.noreply.github.com" - + # Commit and push changes #git add Cargo.toml Cargo.lock #git commit -m "chore: bump version to $VERSION" || echo "No changes to commit" From df7bd39f25a304cef27a5891c40cebfe420f3f11 Mon Sep 17 00:00:00 2001 From: Roman Sotnikov Date: Sun, 22 Feb 2026 15:53:31 +0300 Subject: [PATCH 2/5] style(yaml): fix formating for build-push-docker --- .github/workflows/release.yml | 44 +++++++++++++++++------------------ 1 file changed, 22 insertions(+), 22 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 9429f21..cf2bbc4 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -84,31 +84,31 @@ jobs: target/${{ matrix.target }}/release/${{ matrix.asset_name }}.tar.gz target/${{ matrix.target }}/release/${{ matrix.asset_name }}.sha256 - build-docker-image: - runs-on: ubuntu-latest - steps: - - name: Checkout - uses: actions/checkout@v3 + build-docker-image: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v3 - - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v2 + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v2 - - name: Login to GitHub Container Registry - uses: docker/login-action@v2 - with: - registry: ghcr.io - username: ${{ github.repository_owner }} - password: ${{ secrets.TOKEN_GH_DEPLOY }} + - name: Login to GitHub Container Registry + uses: docker/login-action@v2 + with: + registry: ghcr.io + username: ${{ github.repository_owner }} + password: ${{ secrets.TOKEN_GH_DEPLOY }} - - name: Build and push - uses: docker/build-push-action@v3 - with: - context: . - platforms: linux/amd64,linux/arm64 - push: true - tags: | - ghcr.io/telemt/telemt:latest - ghcr.io/telemt/telemt:${{github.ref_name}} + - name: Build and push + uses: docker/build-push-action@v3 + with: + context: . + platforms: linux/amd64,linux/arm64 + push: true + tags: | + ghcr.io/telemt/telemt:latest + ghcr.io/telemt/telemt:${{github.ref_name}} release: name: Create Release From ad167f9b1ae79f9e604c3e360b0bbfc5ad096f20 Mon Sep 17 00:00:00 2001 From: Roman Sotnikov Date: Sun, 22 Feb 2026 15:55:30 +0300 Subject: [PATCH 3/5] style(yaml): fix formating for build-push-docker --- .github/workflows/release.yml | 42 +++++++++++++++++------------------ 1 file changed, 21 insertions(+), 21 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index cf2bbc4..2fad8a7 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -85,30 +85,30 @@ jobs: target/${{ matrix.target }}/release/${{ matrix.asset_name }}.sha256 build-docker-image: - runs-on: ubuntu-latest - steps: - - name: Checkout - uses: actions/checkout@v3 + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v3 - - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v2 + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v2 - - name: Login to GitHub Container Registry - uses: docker/login-action@v2 - with: - registry: ghcr.io - username: ${{ github.repository_owner }} - password: ${{ secrets.TOKEN_GH_DEPLOY }} + - name: Login to GitHub Container Registry + uses: docker/login-action@v2 + with: + registry: ghcr.io + username: ${{ github.repository_owner }} + password: ${{ secrets.TOKEN_GH_DEPLOY }} - - name: Build and push - uses: docker/build-push-action@v3 - with: - context: . - platforms: linux/amd64,linux/arm64 - push: true - tags: | - ghcr.io/telemt/telemt:latest - ghcr.io/telemt/telemt:${{github.ref_name}} + - name: Build and push + uses: docker/build-push-action@v3 + with: + context: . + platforms: linux/amd64,linux/arm64 + push: true + tags: | + ghcr.io/telemt/telemt:latest + ghcr.io/telemt/telemt:${{github.ref_name}} release: name: Create Release From eb96fcbf76f34f3241facaf695771c1492bcfed0 Mon Sep 17 00:00:00 2001 From: Roman Sotnikov Date: Sun, 22 Feb 2026 16:17:44 +0300 Subject: [PATCH 4/5] fix: fix push image to telemt --- .github/workflows/release.yml | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 2fad8a7..16294af 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -90,6 +90,9 @@ jobs: - name: Checkout uses: actions/checkout@v3 + - name: Set up QEMU + uses: docker/setup-qemu-action@v3 + - name: Set up Docker Buildx uses: docker/setup-buildx-action@v2 @@ -101,14 +104,12 @@ jobs: password: ${{ secrets.TOKEN_GH_DEPLOY }} - name: Build and push - uses: docker/build-push-action@v3 + uses: docker/build-push-action@v6 with: context: . - platforms: linux/amd64,linux/arm64 push: true - tags: | - ghcr.io/telemt/telemt:latest - ghcr.io/telemt/telemt:${{github.ref_name}} + tags: ${{ steps.meta.outputs.tags }} + labels: ${{ steps.meta.outputs.labels }} release: name: Create Release From cc9e71a7373c5c13e60744ed567b1cbd202d1739 Mon Sep 17 00:00:00 2001 From: Roman Sotnikov Date: Sun, 22 Feb 2026 16:29:04 +0300 Subject: [PATCH 5/5] fix: fix push image to telemt --- .github/workflows/release.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 16294af..116c1d4 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -108,8 +108,7 @@ jobs: with: context: . push: true - tags: ${{ steps.meta.outputs.tags }} - labels: ${{ steps.meta.outputs.labels }} + tags: ${{ github.ref }} release: name: Create Release