From 9513e0bfe9fa1d40c401e7907ea2164ed95767de Mon Sep 17 00:00:00 2001 From: Kuba <78603704+jakub-tldr@users.noreply.github.com> Date: Wed, 20 May 2026 17:24:26 +0200 Subject: [PATCH 1/8] test workflow --- .github/workflows/release.yml | 182 +++++++++++++++++++++++++++------- 1 file changed, 146 insertions(+), 36 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 9124bac..cc2ab56 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -3,6 +3,8 @@ on: push: tags: - v*.*.* + branches: + - build-additional-debs concurrency: group: ${{ github.workflow }}-${{ github.ref }} @@ -15,34 +17,34 @@ env: RUSTC_WRAPPER: "sccache" jobs: - build-docker-release: - # Ignore tags with -, like v1.0.0-alpha - if: startsWith(github.ref, 'refs/tags/') && !contains(github.ref, '-') - name: Build Release Docker image - uses: ./.github/workflows/build-docker.yml - with: - tags: | - type=semver,pattern={{version}} - type=semver,pattern={{major}}.{{minor}} - type=semver,pattern={{major}} - type=sha - # Explicitly disable latest tag. It will be added otherwise. - flavor: | - latest=false - - build-docker-prerelease: - # Only build tags with -, like v1.0.0-alpha - if: startsWith(github.ref, 'refs/tags/') && contains(github.ref, '-') - name: Build Pre-release Docker image - uses: ./.github/workflows/build-docker.yml - with: - tags: | - type=raw,value=pre-release - type=semver,pattern={{version}} - type=sha - # Explicitly disable latest tag. It will be added otherwise. - flavor: | - latest=false + # build-docker-release: + # # Ignore tags with -, like v1.0.0-alpha + # if: startsWith(github.ref, 'refs/tags/') && !contains(github.ref, '-') + # name: Build Release Docker image + # uses: ./.github/workflows/build-docker.yml + # with: + # tags: | + # type=semver,pattern={{version}} + # type=semver,pattern={{major}}.{{minor}} + # type=semver,pattern={{major}} + # type=sha + # # Explicitly disable latest tag. It will be added otherwise. + # flavor: | + # latest=false + + # build-docker-prerelease: + # # Only build tags with -, like v1.0.0-alpha + # if: startsWith(github.ref, 'refs/tags/') && contains(github.ref, '-') + # name: Build Pre-release Docker image + # uses: ./.github/workflows/build-docker.yml + # with: + # tags: | + # type=raw,value=pre-release + # type=semver,pattern={{version}} + # type=sha + # # Explicitly disable latest tag. It will be added otherwise. + # flavor: | + # latest=false create-release: name: create-release @@ -55,15 +57,16 @@ jobs: uses: shogo82148/actions-create-release@6a396031bc74c57403da1018fec74d24c6aa03cd # v1 with: draft: true + tag_name: v2.0.1-test generate_release_notes: true - create-sbom: - needs: - - create-release - - build-docker-release - uses: ./.github/workflows/sbom.yml - with: - upload_url: ${{ needs.create-release.outputs.upload_url }} + # create-sbom: + # needs: + # - create-release + # - build-docker-release + # uses: ./.github/workflows/sbom.yml + # with: + # upload_url: ${{ needs.create-release.outputs.upload_url }} build-binaries: needs: @@ -76,7 +79,8 @@ jobs: # Store the version, stripping any v-prefix - name: Write release version run: | - VERSION=${GITHUB_REF_NAME#v} + # VERSION=${GITHUB_REF_NAME#v} + VERSION="2.0.1-test" echo Version: $VERSION echo "VERSION=$VERSION" >> $GITHUB_ENV @@ -297,3 +301,109 @@ jobs: asset_path: defguard-proxy-${{ env.VERSION }}_x86_64-unknown-freebsd.pkg asset_content_type: application/x-pkg overwrite: true + + ubuntu-22-04-build: + needs: + - create-release + runs-on: + - self-hosted + - Linux + - ${{ matrix.architecture }} + strategy: + fail-fast: false + matrix: + architecture: [ARM64, X64] + include: + - architecture: ARM64 + deb_arch: arm64 + rust_target: aarch64-unknown-linux-gnu + - architecture: X64 + deb_arch: amd64 + rust_target: x86_64-unknown-linux-gnu + container: + image: ubuntu:22.04 + env: + DEBIAN_FRONTEND: noninteractive + HOME: /root + RUSTUP_HOME: /root/.rustup + CARGO_HOME: /root/.cargo + env: + RUSTC_WRAPPER: "" + + steps: + - name: Install git + run: | + apt-get update + apt-get install -y git curl ca-certificates libatomic1 + git config --global --add safe.directory '*' + + - name: Checkout + uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6 + with: + submodules: recursive + + - name: Write release version + run: | + # VERSION=${GITHUB_REF_NAME#v} + VERSION="2.0.1-test" + echo Version: $VERSION + echo "VERSION=$VERSION" >> $GITHUB_ENV + + - name: Install NodeJS + uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6 + with: + node-version: 25 + + - name: Install pnpm + uses: pnpm/action-setup@0e279bb959325dab635dd2c09392533439d90093 # v6 + with: + version: 10 + + # Change to '--frozen-lockfile' once this gets fixed: + # https://github.com/pnpm/action-setup/issues/40 + - name: Build frontend + working-directory: web + run: | + pnpm install --ignore-scripts --no-frozen-lockfile + pnpm build + + - name: Install Rust stable + uses: dtolnay/rust-toolchain@29eef336d9b2848a0b548edc03f92a220660cdb8 # stable + + - name: Install build dependencies + run: | + apt-get install -y \ + build-essential pkg-config \ + libssl-dev \ + protobuf-compiler libprotobuf-dev \ + ruby ruby-dev rubygems rpm + gem install fpm --no-document + + - name: Build binary + run: | + cargo build --locked --release --target ${{ matrix.rust_target }} + + - name: Build DEB package (ubuntu-22-04-lts) + run: | + fpm \ + --output-type deb \ + --version "${{ env.VERSION }}" \ + --architecture ${{ matrix.deb_arch }} \ + --package defguard-proxy-${{ env.VERSION }}-${{ matrix.deb_arch }}_ubuntu-22-04-lts.deb \ + --before-install linux/preinst \ + --after-install linux/postinst \ + --before-remove linux/prerm \ + --after-remove linux/postrm \ + "target/${{ matrix.rust_target }}/release/defguard-proxy=/usr/bin/defguard-proxy" \ + "linux/defguard-proxy.service=/usr/lib/systemd/system/defguard-proxy.service" \ + "example-config.toml=/etc/defguard/proxy.toml" + + - name: Upload ubuntu-22-04-lts DEB + uses: shogo82148/actions-upload-release-asset@ee2ae851dc5d938b90075b3ef12c540abfd1ee72 # v1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + upload_url: ${{ needs.create-release.outputs.upload_url }} + asset_path: defguard-proxy-${{ env.VERSION }}-${{ matrix.deb_arch }}_ubuntu-22-04-lts.deb + asset_content_type: application/gzip + overwrite: true From 8f9ce7dc1a976784fc4781dbe13baa1660d6c6cd Mon Sep 17 00:00:00 2001 From: Kuba <78603704+jakub-tldr@users.noreply.github.com> Date: Wed, 20 May 2026 17:37:13 +0200 Subject: [PATCH 2/8] remove test trigger --- .github/workflows/release.yml | 79 ++++++++++++++++------------------- 1 file changed, 37 insertions(+), 42 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index cc2ab56..370af37 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -3,8 +3,6 @@ on: push: tags: - v*.*.* - branches: - - build-additional-debs concurrency: group: ${{ github.workflow }}-${{ github.ref }} @@ -17,34 +15,34 @@ env: RUSTC_WRAPPER: "sccache" jobs: - # build-docker-release: - # # Ignore tags with -, like v1.0.0-alpha - # if: startsWith(github.ref, 'refs/tags/') && !contains(github.ref, '-') - # name: Build Release Docker image - # uses: ./.github/workflows/build-docker.yml - # with: - # tags: | - # type=semver,pattern={{version}} - # type=semver,pattern={{major}}.{{minor}} - # type=semver,pattern={{major}} - # type=sha - # # Explicitly disable latest tag. It will be added otherwise. - # flavor: | - # latest=false - - # build-docker-prerelease: - # # Only build tags with -, like v1.0.0-alpha - # if: startsWith(github.ref, 'refs/tags/') && contains(github.ref, '-') - # name: Build Pre-release Docker image - # uses: ./.github/workflows/build-docker.yml - # with: - # tags: | - # type=raw,value=pre-release - # type=semver,pattern={{version}} - # type=sha - # # Explicitly disable latest tag. It will be added otherwise. - # flavor: | - # latest=false + build-docker-release: + # Ignore tags with -, like v1.0.0-alpha + if: startsWith(github.ref, 'refs/tags/') && !contains(github.ref, '-') + name: Build Release Docker image + uses: ./.github/workflows/build-docker.yml + with: + tags: | + type=semver,pattern={{version}} + type=semver,pattern={{major}}.{{minor}} + type=semver,pattern={{major}} + type=sha + # Explicitly disable latest tag. It will be added otherwise. + flavor: | + latest=false + + build-docker-prerelease: + # Only build tags with -, like v1.0.0-alpha + if: startsWith(github.ref, 'refs/tags/') && contains(github.ref, '-') + name: Build Pre-release Docker image + uses: ./.github/workflows/build-docker.yml + with: + tags: | + type=raw,value=pre-release + type=semver,pattern={{version}} + type=sha + # Explicitly disable latest tag. It will be added otherwise. + flavor: | + latest=false create-release: name: create-release @@ -57,16 +55,15 @@ jobs: uses: shogo82148/actions-create-release@6a396031bc74c57403da1018fec74d24c6aa03cd # v1 with: draft: true - tag_name: v2.0.1-test generate_release_notes: true - # create-sbom: - # needs: - # - create-release - # - build-docker-release - # uses: ./.github/workflows/sbom.yml - # with: - # upload_url: ${{ needs.create-release.outputs.upload_url }} + create-sbom: + needs: + - create-release + - build-docker-release + uses: ./.github/workflows/sbom.yml + with: + upload_url: ${{ needs.create-release.outputs.upload_url }} build-binaries: needs: @@ -79,8 +76,7 @@ jobs: # Store the version, stripping any v-prefix - name: Write release version run: | - # VERSION=${GITHUB_REF_NAME#v} - VERSION="2.0.1-test" + VERSION=${GITHUB_REF_NAME#v} echo Version: $VERSION echo "VERSION=$VERSION" >> $GITHUB_ENV @@ -344,8 +340,7 @@ jobs: - name: Write release version run: | - # VERSION=${GITHUB_REF_NAME#v} - VERSION="2.0.1-test" + VERSION=${GITHUB_REF_NAME#v} echo Version: $VERSION echo "VERSION=$VERSION" >> $GITHUB_ENV From 0575b70369cc3560c0115cf1d5427335a24d14ff Mon Sep 17 00:00:00 2001 From: Kuba <78603704+jakub-tldr@users.noreply.github.com> Date: Wed, 20 May 2026 17:49:51 +0200 Subject: [PATCH 3/8] test last time --- .github/workflows/release.yml | 79 +++++++++++++++++++---------------- 1 file changed, 42 insertions(+), 37 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 370af37..cc2ab56 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -3,6 +3,8 @@ on: push: tags: - v*.*.* + branches: + - build-additional-debs concurrency: group: ${{ github.workflow }}-${{ github.ref }} @@ -15,34 +17,34 @@ env: RUSTC_WRAPPER: "sccache" jobs: - build-docker-release: - # Ignore tags with -, like v1.0.0-alpha - if: startsWith(github.ref, 'refs/tags/') && !contains(github.ref, '-') - name: Build Release Docker image - uses: ./.github/workflows/build-docker.yml - with: - tags: | - type=semver,pattern={{version}} - type=semver,pattern={{major}}.{{minor}} - type=semver,pattern={{major}} - type=sha - # Explicitly disable latest tag. It will be added otherwise. - flavor: | - latest=false - - build-docker-prerelease: - # Only build tags with -, like v1.0.0-alpha - if: startsWith(github.ref, 'refs/tags/') && contains(github.ref, '-') - name: Build Pre-release Docker image - uses: ./.github/workflows/build-docker.yml - with: - tags: | - type=raw,value=pre-release - type=semver,pattern={{version}} - type=sha - # Explicitly disable latest tag. It will be added otherwise. - flavor: | - latest=false + # build-docker-release: + # # Ignore tags with -, like v1.0.0-alpha + # if: startsWith(github.ref, 'refs/tags/') && !contains(github.ref, '-') + # name: Build Release Docker image + # uses: ./.github/workflows/build-docker.yml + # with: + # tags: | + # type=semver,pattern={{version}} + # type=semver,pattern={{major}}.{{minor}} + # type=semver,pattern={{major}} + # type=sha + # # Explicitly disable latest tag. It will be added otherwise. + # flavor: | + # latest=false + + # build-docker-prerelease: + # # Only build tags with -, like v1.0.0-alpha + # if: startsWith(github.ref, 'refs/tags/') && contains(github.ref, '-') + # name: Build Pre-release Docker image + # uses: ./.github/workflows/build-docker.yml + # with: + # tags: | + # type=raw,value=pre-release + # type=semver,pattern={{version}} + # type=sha + # # Explicitly disable latest tag. It will be added otherwise. + # flavor: | + # latest=false create-release: name: create-release @@ -55,15 +57,16 @@ jobs: uses: shogo82148/actions-create-release@6a396031bc74c57403da1018fec74d24c6aa03cd # v1 with: draft: true + tag_name: v2.0.1-test generate_release_notes: true - create-sbom: - needs: - - create-release - - build-docker-release - uses: ./.github/workflows/sbom.yml - with: - upload_url: ${{ needs.create-release.outputs.upload_url }} + # create-sbom: + # needs: + # - create-release + # - build-docker-release + # uses: ./.github/workflows/sbom.yml + # with: + # upload_url: ${{ needs.create-release.outputs.upload_url }} build-binaries: needs: @@ -76,7 +79,8 @@ jobs: # Store the version, stripping any v-prefix - name: Write release version run: | - VERSION=${GITHUB_REF_NAME#v} + # VERSION=${GITHUB_REF_NAME#v} + VERSION="2.0.1-test" echo Version: $VERSION echo "VERSION=$VERSION" >> $GITHUB_ENV @@ -340,7 +344,8 @@ jobs: - name: Write release version run: | - VERSION=${GITHUB_REF_NAME#v} + # VERSION=${GITHUB_REF_NAME#v} + VERSION="2.0.1-test" echo Version: $VERSION echo "VERSION=$VERSION" >> $GITHUB_ENV From 6c01539a9fbb7a0ffdddf7a17f396cc737612631 Mon Sep 17 00:00:00 2001 From: Kuba <78603704+jakub-tldr@users.noreply.github.com> Date: Wed, 20 May 2026 18:45:21 +0200 Subject: [PATCH 4/8] remove test trigger --- .github/workflows/release.yml | 79 ++++++++++++++++------------------- 1 file changed, 37 insertions(+), 42 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index cc2ab56..370af37 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -3,8 +3,6 @@ on: push: tags: - v*.*.* - branches: - - build-additional-debs concurrency: group: ${{ github.workflow }}-${{ github.ref }} @@ -17,34 +15,34 @@ env: RUSTC_WRAPPER: "sccache" jobs: - # build-docker-release: - # # Ignore tags with -, like v1.0.0-alpha - # if: startsWith(github.ref, 'refs/tags/') && !contains(github.ref, '-') - # name: Build Release Docker image - # uses: ./.github/workflows/build-docker.yml - # with: - # tags: | - # type=semver,pattern={{version}} - # type=semver,pattern={{major}}.{{minor}} - # type=semver,pattern={{major}} - # type=sha - # # Explicitly disable latest tag. It will be added otherwise. - # flavor: | - # latest=false - - # build-docker-prerelease: - # # Only build tags with -, like v1.0.0-alpha - # if: startsWith(github.ref, 'refs/tags/') && contains(github.ref, '-') - # name: Build Pre-release Docker image - # uses: ./.github/workflows/build-docker.yml - # with: - # tags: | - # type=raw,value=pre-release - # type=semver,pattern={{version}} - # type=sha - # # Explicitly disable latest tag. It will be added otherwise. - # flavor: | - # latest=false + build-docker-release: + # Ignore tags with -, like v1.0.0-alpha + if: startsWith(github.ref, 'refs/tags/') && !contains(github.ref, '-') + name: Build Release Docker image + uses: ./.github/workflows/build-docker.yml + with: + tags: | + type=semver,pattern={{version}} + type=semver,pattern={{major}}.{{minor}} + type=semver,pattern={{major}} + type=sha + # Explicitly disable latest tag. It will be added otherwise. + flavor: | + latest=false + + build-docker-prerelease: + # Only build tags with -, like v1.0.0-alpha + if: startsWith(github.ref, 'refs/tags/') && contains(github.ref, '-') + name: Build Pre-release Docker image + uses: ./.github/workflows/build-docker.yml + with: + tags: | + type=raw,value=pre-release + type=semver,pattern={{version}} + type=sha + # Explicitly disable latest tag. It will be added otherwise. + flavor: | + latest=false create-release: name: create-release @@ -57,16 +55,15 @@ jobs: uses: shogo82148/actions-create-release@6a396031bc74c57403da1018fec74d24c6aa03cd # v1 with: draft: true - tag_name: v2.0.1-test generate_release_notes: true - # create-sbom: - # needs: - # - create-release - # - build-docker-release - # uses: ./.github/workflows/sbom.yml - # with: - # upload_url: ${{ needs.create-release.outputs.upload_url }} + create-sbom: + needs: + - create-release + - build-docker-release + uses: ./.github/workflows/sbom.yml + with: + upload_url: ${{ needs.create-release.outputs.upload_url }} build-binaries: needs: @@ -79,8 +76,7 @@ jobs: # Store the version, stripping any v-prefix - name: Write release version run: | - # VERSION=${GITHUB_REF_NAME#v} - VERSION="2.0.1-test" + VERSION=${GITHUB_REF_NAME#v} echo Version: $VERSION echo "VERSION=$VERSION" >> $GITHUB_ENV @@ -344,8 +340,7 @@ jobs: - name: Write release version run: | - # VERSION=${GITHUB_REF_NAME#v} - VERSION="2.0.1-test" + VERSION=${GITHUB_REF_NAME#v} echo Version: $VERSION echo "VERSION=$VERSION" >> $GITHUB_ENV From 05eb512507692df6b3ef60c045baa61815398179 Mon Sep 17 00:00:00 2001 From: Kuba <78603704+jakub-tldr@users.noreply.github.com> Date: Thu, 21 May 2026 11:44:45 +0200 Subject: [PATCH 5/8] apply suggestions and test workflow --- .github/workflows/release.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 370af37..26ac2a2 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -76,7 +76,8 @@ jobs: # Store the version, stripping any v-prefix - name: Write release version run: | - VERSION=${GITHUB_REF_NAME#v} + # VERSION=${GITHUB_REF_NAME#v} + VERSION="2.0.1-test" echo Version: $VERSION echo "VERSION=$VERSION" >> $GITHUB_ENV @@ -323,8 +324,6 @@ jobs: HOME: /root RUSTUP_HOME: /root/.rustup CARGO_HOME: /root/.cargo - env: - RUSTC_WRAPPER: "" steps: - name: Install git @@ -340,19 +339,20 @@ jobs: - name: Write release version run: | - VERSION=${GITHUB_REF_NAME#v} + # VERSION=${GITHUB_REF_NAME#v} + VERSION="2.0.1-test" echo Version: $VERSION echo "VERSION=$VERSION" >> $GITHUB_ENV - name: Install NodeJS uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6 with: - node-version: 25 + node-version: 26 - name: Install pnpm uses: pnpm/action-setup@0e279bb959325dab635dd2c09392533439d90093 # v6 with: - version: 10 + version: 11 # Change to '--frozen-lockfile' once this gets fixed: # https://github.com/pnpm/action-setup/issues/40 From 9560f63d843c7b6d7b9d3ab69a5d74460c365ac2 Mon Sep 17 00:00:00 2001 From: Kuba <78603704+jakub-tldr@users.noreply.github.com> Date: Thu, 21 May 2026 11:45:44 +0200 Subject: [PATCH 6/8] test workflow --- .github/workflows/release.yml | 73 ++++++++++++++++++----------------- 1 file changed, 38 insertions(+), 35 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 26ac2a2..b59629e 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -3,6 +3,8 @@ on: push: tags: - v*.*.* + branches: + - build-additional-debs concurrency: group: ${{ github.workflow }}-${{ github.ref }} @@ -15,34 +17,34 @@ env: RUSTC_WRAPPER: "sccache" jobs: - build-docker-release: - # Ignore tags with -, like v1.0.0-alpha - if: startsWith(github.ref, 'refs/tags/') && !contains(github.ref, '-') - name: Build Release Docker image - uses: ./.github/workflows/build-docker.yml - with: - tags: | - type=semver,pattern={{version}} - type=semver,pattern={{major}}.{{minor}} - type=semver,pattern={{major}} - type=sha - # Explicitly disable latest tag. It will be added otherwise. - flavor: | - latest=false - - build-docker-prerelease: - # Only build tags with -, like v1.0.0-alpha - if: startsWith(github.ref, 'refs/tags/') && contains(github.ref, '-') - name: Build Pre-release Docker image - uses: ./.github/workflows/build-docker.yml - with: - tags: | - type=raw,value=pre-release - type=semver,pattern={{version}} - type=sha - # Explicitly disable latest tag. It will be added otherwise. - flavor: | - latest=false + # build-docker-release: + # # Ignore tags with -, like v1.0.0-alpha + # if: startsWith(github.ref, 'refs/tags/') && !contains(github.ref, '-') + # name: Build Release Docker image + # uses: ./.github/workflows/build-docker.yml + # with: + # tags: | + # type=semver,pattern={{version}} + # type=semver,pattern={{major}}.{{minor}} + # type=semver,pattern={{major}} + # type=sha + # # Explicitly disable latest tag. It will be added otherwise. + # flavor: | + # latest=false + + # build-docker-prerelease: + # # Only build tags with -, like v1.0.0-alpha + # if: startsWith(github.ref, 'refs/tags/') && contains(github.ref, '-') + # name: Build Pre-release Docker image + # uses: ./.github/workflows/build-docker.yml + # with: + # tags: | + # type=raw,value=pre-release + # type=semver,pattern={{version}} + # type=sha + # # Explicitly disable latest tag. It will be added otherwise. + # flavor: | + # latest=false create-release: name: create-release @@ -55,15 +57,16 @@ jobs: uses: shogo82148/actions-create-release@6a396031bc74c57403da1018fec74d24c6aa03cd # v1 with: draft: true + tag_name: v2.0.1-test generate_release_notes: true - create-sbom: - needs: - - create-release - - build-docker-release - uses: ./.github/workflows/sbom.yml - with: - upload_url: ${{ needs.create-release.outputs.upload_url }} + # create-sbom: + # needs: + # - create-release + # - build-docker-release + # uses: ./.github/workflows/sbom.yml + # with: + # upload_url: ${{ needs.create-release.outputs.upload_url }} build-binaries: needs: From 7deda3442b108b4325784884c0548be5163759c2 Mon Sep 17 00:00:00 2001 From: Kuba <78603704+jakub-tldr@users.noreply.github.com> Date: Thu, 21 May 2026 12:01:56 +0200 Subject: [PATCH 7/8] move env --- .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 b59629e..f17c035 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -10,11 +10,7 @@ concurrency: group: ${{ github.workflow }}-${{ github.ref }} cancel-in-progress: true -env: - SQLX_OFFLINE: "1" - # sccache - SCCACHE_GHA_ENABLED: "true" - RUSTC_WRAPPER: "sccache" + jobs: # build-docker-release: @@ -75,6 +71,11 @@ jobs: - self-hosted - Linux - X64 + env: + SQLX_OFFLINE: "1" + # sccache + SCCACHE_GHA_ENABLED: "true" + RUSTC_WRAPPER: "sccache" steps: # Store the version, stripping any v-prefix - name: Write release version From 0fca18ac3eaa2cdb1b72018593773a4c50ebb69a Mon Sep 17 00:00:00 2001 From: Kuba <78603704+jakub-tldr@users.noreply.github.com> Date: Thu, 21 May 2026 12:29:58 +0200 Subject: [PATCH 8/8] remove test trigger --- .github/workflows/release.yml | 79 ++++++++++++++++------------------- 1 file changed, 37 insertions(+), 42 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index f17c035..fa80481 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -3,8 +3,6 @@ on: push: tags: - v*.*.* - branches: - - build-additional-debs concurrency: group: ${{ github.workflow }}-${{ github.ref }} @@ -13,34 +11,34 @@ concurrency: jobs: - # build-docker-release: - # # Ignore tags with -, like v1.0.0-alpha - # if: startsWith(github.ref, 'refs/tags/') && !contains(github.ref, '-') - # name: Build Release Docker image - # uses: ./.github/workflows/build-docker.yml - # with: - # tags: | - # type=semver,pattern={{version}} - # type=semver,pattern={{major}}.{{minor}} - # type=semver,pattern={{major}} - # type=sha - # # Explicitly disable latest tag. It will be added otherwise. - # flavor: | - # latest=false - - # build-docker-prerelease: - # # Only build tags with -, like v1.0.0-alpha - # if: startsWith(github.ref, 'refs/tags/') && contains(github.ref, '-') - # name: Build Pre-release Docker image - # uses: ./.github/workflows/build-docker.yml - # with: - # tags: | - # type=raw,value=pre-release - # type=semver,pattern={{version}} - # type=sha - # # Explicitly disable latest tag. It will be added otherwise. - # flavor: | - # latest=false + build-docker-release: + # Ignore tags with -, like v1.0.0-alpha + if: startsWith(github.ref, 'refs/tags/') && !contains(github.ref, '-') + name: Build Release Docker image + uses: ./.github/workflows/build-docker.yml + with: + tags: | + type=semver,pattern={{version}} + type=semver,pattern={{major}}.{{minor}} + type=semver,pattern={{major}} + type=sha + # Explicitly disable latest tag. It will be added otherwise. + flavor: | + latest=false + + build-docker-prerelease: + # Only build tags with -, like v1.0.0-alpha + if: startsWith(github.ref, 'refs/tags/') && contains(github.ref, '-') + name: Build Pre-release Docker image + uses: ./.github/workflows/build-docker.yml + with: + tags: | + type=raw,value=pre-release + type=semver,pattern={{version}} + type=sha + # Explicitly disable latest tag. It will be added otherwise. + flavor: | + latest=false create-release: name: create-release @@ -53,16 +51,15 @@ jobs: uses: shogo82148/actions-create-release@6a396031bc74c57403da1018fec74d24c6aa03cd # v1 with: draft: true - tag_name: v2.0.1-test generate_release_notes: true - # create-sbom: - # needs: - # - create-release - # - build-docker-release - # uses: ./.github/workflows/sbom.yml - # with: - # upload_url: ${{ needs.create-release.outputs.upload_url }} + create-sbom: + needs: + - create-release + - build-docker-release + uses: ./.github/workflows/sbom.yml + with: + upload_url: ${{ needs.create-release.outputs.upload_url }} build-binaries: needs: @@ -80,8 +77,7 @@ jobs: # Store the version, stripping any v-prefix - name: Write release version run: | - # VERSION=${GITHUB_REF_NAME#v} - VERSION="2.0.1-test" + VERSION=${GITHUB_REF_NAME#v} echo Version: $VERSION echo "VERSION=$VERSION" >> $GITHUB_ENV @@ -343,8 +339,7 @@ jobs: - name: Write release version run: | - # VERSION=${GITHUB_REF_NAME#v} - VERSION="2.0.1-test" + VERSION=${GITHUB_REF_NAME#v} echo Version: $VERSION echo "VERSION=$VERSION" >> $GITHUB_ENV