From d9313b93a04241a4624563e48787ca4e64a91aa3 Mon Sep 17 00:00:00 2001 From: mohitrajain Date: Sat, 22 Aug 2026 17:59:07 +0200 Subject: [PATCH 01/14] fix wpb-00000: updating nix to use a newer helm version and update gnupg use well --- default.nix | 23 ++++++++++++----------- nix/overlay.nix | 4 ++-- nix/scripts/mirror-apt-jammy.sh | 4 ++-- nix/sources.json | 18 +++++++++--------- 4 files changed, 25 insertions(+), 24 deletions(-) diff --git a/default.nix b/default.nix index fb0468cfc..f30fba2e2 100644 --- a/default.nix +++ b/default.nix @@ -3,12 +3,12 @@ let sources = import ./nix/sources.nix; # for injecting old gnupg dependancy - oldpkgs = import sources.oldpkgs { - inherit system; - config = { }; - }; + #oldpkgs = import sources.oldpkgs { + # inherit system; + # config = { }; + #}; # extract the module for injecting - gnupg1orig = oldpkgs.gnupg1orig; + #gnupg1orig = oldpkgs.gnupg1orig; pkgs = import sources.nixpkgs { inherit system; @@ -21,9 +21,9 @@ let # layering is important here, the lowest takes precedance in case of overlaps overlays = [ # custom overlay for injections - (self: super: { - gnupg1orig = gnupg1orig; - }) + # (self: super: { + # gnupg1orig = gnupg1orig; + # }) # main overlay (import ./nix/overlay.nix) ]; @@ -49,9 +49,9 @@ rec { apacheHttpd awscli2 gnumake - gnupg1 + gnupg # injected dependacy gnupg1orig - gnupg1orig + # gnupg1orig kubernetes-tools @@ -78,6 +78,7 @@ rec { gnused curl gawk + oras niv nix-prefetch-docker @@ -127,4 +128,4 @@ rec { ]; }; }; -} +} \ No newline at end of file diff --git a/nix/overlay.nix b/nix/overlay.nix index b5d27bca9..04f65395a 100644 --- a/nix/overlay.nix +++ b/nix/overlay.nix @@ -43,7 +43,7 @@ super: { install -Dm755 ${./scripts/generate-gpg1-key.sh} $out/bin/generate-gpg1-key # we *--set* PATH here, to ensure we don't pick wrong gpgs - wrapProgram $out/bin/generate-gpg1-key --set PATH '${super.lib.makeBinPath (with self; [ bash coreutils gnupg1orig ])}' + wrapProgram $out/bin/generate-gpg1-key --set PATH '${super.lib.makeBinPath (with self; [ bash coreutils ])}' ''; mirror-apt-jammy = super.runCommandNoCC "mirror-apt-jammy" { @@ -52,7 +52,7 @@ super: { '' install -Dm755 ${./scripts/mirror-apt-jammy.sh} $out/bin/mirror-apt-jammy # we need to *--set* PATH here, otherwise aptly will pick the wrong gpg - wrapProgram $out/bin/mirror-apt-jammy --set PATH '${super.lib.makeBinPath (with self; [ aptly bash coreutils curl gnupg1orig gnused gnutar ])}' + wrapProgram $out/bin/mirror-apt-jammy --set PATH '${super.lib.makeBinPath (with self; [ aptly bash coreutils curl gnupg gnused gnutar ])}' ''; create-container-dump = super.runCommandNoCC "create-container-dump" diff --git a/nix/scripts/mirror-apt-jammy.sh b/nix/scripts/mirror-apt-jammy.sh index b75d5778f..fb5057687 100755 --- a/nix/scripts/mirror-apt-jammy.sh +++ b/nix/scripts/mirror-apt-jammy.sh @@ -113,7 +113,7 @@ aptly_config=$(mktemp) trap 'rm -Rf -- "$aptly_config $GNUPGHOME"' EXIT cat > "$aptly_config" < "$aptly_root/public/gpg" diff --git a/nix/sources.json b/nix/sources.json index d9f443988..a6a54e2c8 100644 --- a/nix/sources.json +++ b/nix/sources.json @@ -5,10 +5,10 @@ "homepage": "https://github.com/nmattia/niv", "owner": "nmattia", "repo": "niv", - "rev": "9cb7ef336bb71fd1ca84fc7f2dff15ef4b033f2a", - "sha256": "1ajyqr8zka1zlb25jx1v4xys3zqmdy3prbm1vxlid6ah27a8qnzh", + "rev": "1ad9d90fea53b0e794cdbabf5515b39e539bc148", + "sha256": "1abhp43jpr8iaixyflr86zzj8ps0v8xzax301ilsvp07w3h23dwz", "type": "tarball", - "url": "https://github.com/nmattia/niv/archive/9cb7ef336bb71fd1ca84fc7f2dff15ef4b033f2a.tar.gz", + "url": "https://github.com/nmattia/niv/archive/1ad9d90fea53b0e794cdbabf5515b39e539bc148.tar.gz", "url_template": "https://github.com///archive/.tar.gz" }, "nixpkgs": { @@ -17,10 +17,10 @@ "homepage": "https://github.com/NixOS/nixpkgs", "owner": "NixOS", "repo": "nixpkgs", - "rev": "0da3c44a9460a26d2025ec3ed2ec60a895eb1114", - "sha256": "1n435wya14pbl04g6n4zrqaslpik4xq0fv1i2g2mz8sq3dqg7dk0", + "rev": "7901e285e8b54a2f0e51ce6183980738447130e5", + "sha256": "1gdwfkqy7zich82dzxzjcsi613zm7p8cigj2fzqsagn63f5g0pnr", "type": "tarball", - "url": "https://github.com/NixOS/nixpkgs/archive/0da3c44a9460a26d2025ec3ed2ec60a895eb1114.tar.gz", + "url": "https://github.com/NixOS/nixpkgs/archive/7901e285e8b54a2f0e51ce6183980738447130e5.tar.gz", "url_template": "https://github.com///archive/.tar.gz" }, "oldpkgs": { @@ -29,10 +29,10 @@ "homepage": "https://github.com/NixOS/nixpkgs", "owner": "NixOS", "repo": "nixpkgs", - "rev": "057f9aecfb71c4437d2b27d3323df7f93c010b7e", - "sha256": "1ndiv385w1qyb3b18vw13991fzb9wg4cl21wglk89grsfsnra41k", + "rev": "7901e285e8b54a2f0e51ce6183980738447130e5", + "sha256": "1gdwfkqy7zich82dzxzjcsi613zm7p8cigj2fzqsagn63f5g0pnr", "type": "tarball", - "url": "https://github.com/NixOS/nixpkgs/archive/057f9aecfb71c4437d2b27d3323df7f93c010b7e.tar.gz", + "url": "https://github.com/NixOS/nixpkgs/archive/7901e285e8b54a2f0e51ce6183980738447130e5.tar.gz", "url_template": "https://github.com///archive/.tar.gz" } } From 83a312ad74d836e0b45080a4b8a39103318b7228 Mon Sep 17 00:00:00 2001 From: mohitrajain Date: Sat, 22 Aug 2026 19:08:09 +0200 Subject: [PATCH 02/14] fix wpb-00000: run build_linux_pkgs task first --- offline/default-build/build.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/offline/default-build/build.sh b/offline/default-build/build.sh index 93b4d14f0..18d420d07 100755 --- a/offline/default-build/build.sh +++ b/offline/default-build/build.sh @@ -25,6 +25,9 @@ TASKS_DIR="${SCRIPT_DIR}/../tasks" # Processing helm charts # -------------------------- +# build linux packages +"${TASKS_DIR}"/build_linux_pkgs.sh "${OUTPUT_DIR}" "${ROOT_DIR}" + # pulling the charts based on builds.json, charts to be skipped are passed as arguments HELM_CHART_EXCLUDE_LIST "${TASKS_DIR}"/proc_pull_charts.sh OUTPUT_DIR="${OUTPUT_DIR}" HELM_CHART_EXCLUDE_LIST="inbucket,wire-server-enterprise,postgresql,rust-sft,fluent-bit,fake-aws-s3" @@ -67,9 +70,6 @@ cp -r "${ROOT_DIR}"/dashboards "${OUTPUT_DIR}"/ # building admin host containers, has dependenct on the helm charts "${TASKS_DIR}"/build_adminhost_containers.sh "${OUTPUT_DIR}" --adminhost --zauth -# build linux packages -"${TASKS_DIR}"/build_linux_pkgs.sh "${OUTPUT_DIR}" "${ROOT_DIR}" - # Creating system containers tarball "${TASKS_DIR}"/proc_system_containers.sh "${OUTPUT_DIR}" From 779a8a5bae7a8da4ef39b8107bd72839a1e9de35 Mon Sep 17 00:00:00 2001 From: mohitrajain Date: Sat, 22 Aug 2026 19:08:24 +0200 Subject: [PATCH 03/14] fix wpb-00000: update postgresql binaries --- nix/pkgs/wire-binaries.nix | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/nix/pkgs/wire-binaries.nix b/nix/pkgs/wire-binaries.nix index 490f9f4ef..1424a31d8 100644 --- a/nix/pkgs/wire-binaries.nix +++ b/nix/pkgs/wire-binaries.nix @@ -110,18 +110,18 @@ let # when updating the packages, update the checksums too in wire-server-deploy/ansible/inventory/offline/group_vars/all/offline.yml postgresql = fetchurl rec { passthru.url = url; - url = "https://apt.postgresql.org/pub/repos/apt/pool/main/p/postgresql-17/postgresql-17_17.8-1.pgdg22.04+1_amd64.deb"; - sha256 = "sha256:bddeaf93563ecf60df46b2000fd4d519d346d811579f89f30387de8d58f9b0dd"; + url = "https://apt.postgresql.org/pub/repos/apt/pool/main/p/postgresql-17/postgresql-17_17.9-1.pgdg22.04+1_amd64.deb"; + sha256 = "sha256:69a65391f4ec1eac6a64b6f9c4bd31406f5ce5250cb669a5d00bd59f2d1e9e79"; }; postgresql-client = fetchurl rec { passthru.url = url; - url = "https://apt.postgresql.org/pub/repos/apt/pool/main/p/postgresql-17/postgresql-client-17_17.8-1.pgdg22.04+1_amd64.deb"; - sha256 = "sha256:a83a985f1e406c1914212de5dffdcce277d3d82ae5d542dd9d84001a97a427e4"; + url = "https://apt.postgresql.org/pub/repos/apt/pool/main/p/postgresql-17/postgresql-client-17_17.9-1.pgdg22.04+1_amd64.deb"; + sha256 = "sha256:941afbc8e2a3396281cc4877ceb35c767f4638bd731b66ec8edf1fd56d30a538"; }; libpq5 = fetchurl rec { passthru.url = url; - url = "https://apt.postgresql.org/pub/repos/apt/pool/main/p/postgresql-18/libpq5_18.2-1.pgdg22.04+1_amd64.deb"; - sha256 = "sha256:54e4ab2606aea5525bfd1a99b6e1b143458caced07bd840ccb46a69cad61f341"; + url = "https://apt.postgresql.org/pub/repos/apt/pool/main/p/postgresql-18/libpq5_18.3-1.pgdg22.04+1_amd64.deb"; + sha256 = "sha256:06dbcee7e5430a50e71aee28aa83b6aad0325756b67390831f7dbfa5839c9630"; }; postgresql-client-common = fetchurl rec { passthru.url = url; @@ -166,4 +166,4 @@ runCommandNoCC "wire-binaries" } '' mkdir -p $out ${toString (lib.mapAttrsToList (k: v: "cp ${v} $out/${baseNameOf v.url}\n") srcs)} -'' \ No newline at end of file +'' From e4a4f1fa9eeb36026d7a1cc91d46e13060ec92cf Mon Sep 17 00:00:00 2001 From: mohitrajain Date: Sun, 23 Aug 2026 07:41:18 +0200 Subject: [PATCH 04/14] fix wpb-00000: keep the oldpkgs nix to keep old ansible version --- nix/sources.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/nix/sources.json b/nix/sources.json index a6a54e2c8..e0a0cc7d0 100644 --- a/nix/sources.json +++ b/nix/sources.json @@ -29,10 +29,10 @@ "homepage": "https://github.com/NixOS/nixpkgs", "owner": "NixOS", "repo": "nixpkgs", - "rev": "7901e285e8b54a2f0e51ce6183980738447130e5", - "sha256": "1gdwfkqy7zich82dzxzjcsi613zm7p8cigj2fzqsagn63f5g0pnr", + "rev": "0da3c44a9460a26d2025ec3ed2ec60a895eb1114", + "sha256": "1n435wya14pbl04g6n4zrqaslpik4xq0fv1i2g2mz8sq3dqg7dk0", "type": "tarball", - "url": "https://github.com/NixOS/nixpkgs/archive/7901e285e8b54a2f0e51ce6183980738447130e5.tar.gz", + "url": "https://github.com/NixOS/nixpkgs/archive/0da3c44a9460a26d2025ec3ed2ec60a895eb1114.tar.gz", "url_template": "https://github.com///archive/.tar.gz" } } From ca4b1c50ca9fd71d4c407ca645dc5787310fb773 Mon Sep 17 00:00:00 2001 From: mohitrajain Date: Sun, 23 Aug 2026 07:52:14 +0200 Subject: [PATCH 05/14] fix wpb-00000: update customAnsible definition to use oldpkgs --- nix/overlay.nix | 35 ++++++++++++++++++++--------------- 1 file changed, 20 insertions(+), 15 deletions(-) diff --git a/nix/overlay.nix b/nix/overlay.nix index 04f65395a..51b54859d 100644 --- a/nix/overlay.nix +++ b/nix/overlay.nix @@ -1,22 +1,27 @@ self: let helm-mapkubeapis = self.callPackage ./pkgs/helm-mapkubeapis.nix { }; + sources = import ./sources.nix; + # for injecting old gnupg dependancy + oldpkgs = import sources.oldpkgs { + config = { }; + }; in super: { - customAnsible = (self.python3.withPackages (_: self.ansible.requiredPythonModules ++ [ - # due to ansible package from nixpkgs missing some dependancies to run kubespray playbook - # we are making our own custom ansible package and python interpreter, current ansible-core is 2.16.5 - super.python3Packages.ansible-core - # DEPENDENCIES - super.python3Packages.jmespath - super.python3Packages.botocore - super.python3Packages.boto3 - super.python3Packages.cryptography - super.python3Packages.six - # for packet debugging and reporting. - super.python3Packages.pyshark - super.python3Packages.matplotlib - ])); + # due to ansible package from nixpkgs missing some dependancies to run kubespray playbook + # we are making our own custom ansible package and python interpreter, current ansible-core is 2.16.5 + customAnsible = oldpkgs.python3.withPackages (_: + oldpkgs.ansible.requiredPythonModules ++ [ + oldpkgs.python3Packages.ansible-core + + oldpkgs.python3Packages.jmespath + oldpkgs.python3Packages.botocore + oldpkgs.python3Packages.boto3 + oldpkgs.python3Packages.cryptography + oldpkgs.python3Packages.six + oldpkgs.python3Packages.pyshark + oldpkgs.python3Packages.matplotlib + ]); # kubeadm and kubectl kubernetes-tools = self.callPackage ./pkgs/kubernetes-tools.nix { }; @@ -82,4 +87,4 @@ super: { wrapProgram $out/bin/create-build-entry --prefix PATH : '${super.lib.makeBinPath (with self; [ bash jq ])}' ''; -} \ No newline at end of file +} From ac992c5ddd06e622091bab2759593bb2d162a5a2 Mon Sep 17 00:00:00 2001 From: mohitrajain Date: Sun, 23 Aug 2026 07:53:24 +0200 Subject: [PATCH 06/14] fix wpb-00000: add command to display ansible version --- offline/default-build/build.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/offline/default-build/build.sh b/offline/default-build/build.sh index 18d420d07..1505fd9a6 100755 --- a/offline/default-build/build.sh +++ b/offline/default-build/build.sh @@ -25,6 +25,8 @@ TASKS_DIR="${SCRIPT_DIR}/../tasks" # Processing helm charts # -------------------------- +ansible --version + # build linux packages "${TASKS_DIR}"/build_linux_pkgs.sh "${OUTPUT_DIR}" "${ROOT_DIR}" From fa4ca1b1ed7f5e03b815bde6d50641f891b256fd Mon Sep 17 00:00:00 2001 From: mohitrajain Date: Sun, 23 Aug 2026 12:28:18 +0200 Subject: [PATCH 07/14] fix wpb-00000: fix postgresql binary update checksums and add changelog --- .../offline/group_vars/postgresql/postgresql.yml | 12 ++++++------ changelog.d/2-wire-builds/helm-oci-dependency | 1 + 2 files changed, 7 insertions(+), 6 deletions(-) create mode 100644 changelog.d/2-wire-builds/helm-oci-dependency diff --git a/ansible/inventory/offline/group_vars/postgresql/postgresql.yml b/ansible/inventory/offline/group_vars/postgresql/postgresql.yml index 1e4d19920..170355fbb 100644 --- a/ansible/inventory/offline/group_vars/postgresql/postgresql.yml +++ b/ansible/inventory/offline/group_vars/postgresql/postgresql.yml @@ -53,7 +53,7 @@ postgresql_use_repository: false # Set to true to use local packages from urls # When updating the packages, update the checksums too in wire-server-deploy/nix/pkgs/wire-binaries.nix postgresql_pkgs: - name: libpq5 - url: "{{ binaries_url }}/libpq5_18.2-1.pgdg22.04+1_amd64.deb" + url: "{{ binaries_url }}/libpq5_18.3-1.pgdg22.04+1_amd64.deb" checksum: "sha256:54e4ab2606aea5525bfd1a99b6e1b143458caced07bd840ccb46a69cad61f341" - name: postgresql-client-common url: "{{ binaries_url }}/postgresql-client-common_291.pgdg22.04+1_all.deb" @@ -62,11 +62,11 @@ postgresql_pkgs: url: "{{ binaries_url }}/postgresql-common_291.pgdg22.04+1_all.deb" checksum: "sha256:4c51fd323be440de831a55b1f06da77ba6e803fdf47a8b8e3e99b4f439256683" - name: postgresql-client-17 - url: "{{ binaries_url }}/postgresql-client-17_17.8-1.pgdg22.04+1_amd64.deb" - checksum: "sha256:a83a985f1e406c1914212de5dffdcce277d3d82ae5d542dd9d84001a97a427e4" + url: "{{ binaries_url }}/postgresql-client-17_17.9-1.pgdg22.04+1_amd64.deb" + checksum: "sha256:941afbc8e2a3396281cc4877ceb35c767f4638bd731b66ec8edf1fd56d30a538" - name: postgresql-17 - url: "{{ binaries_url }}/postgresql-17_17.8-1.pgdg22.04+1_amd64.deb" - checksum: "sha256:bddeaf93563ecf60df46b2000fd4d519d346d811579f89f30387de8d58f9b0dd" + url: "{{ binaries_url }}/postgresql-17_17.9-1.pgdg22.04+1_amd64.deb" + checksum: "sha256:69a65391f4ec1eac6a64b6f9c4bd31406f5ce5250cb669a5d00bd59f2d1e9e79" - name: python3-psycopg2 url: "{{ binaries_url }}/python3-psycopg2_2.9.10-1.pgdg22.04+1_amd64.deb" checksum: "sha256:cc2f749e3af292a67e012edeb4aa5d284f57f2d66a9a09fe5b81e5ffda73cab4" @@ -78,4 +78,4 @@ postgresql_pkgs: checksum: "sha256:f4efae9acf2fbfb5f5af43b8b812e2925d611fca1c48925276abc64116766128" - name: postgresql-17-repmgr url: "{{ binaries_url }}/postgresql-17-repmgr_5.5.0+debpgdg-3.pgdg22.04+1_amd64.deb" - checksum: "sha256:d8c2d333d7444b88a28f9f1cc8cf351a1120b8856a26940b21e256f80deefd84" \ No newline at end of file + checksum: "sha256:06dbcee7e5430a50e71aee28aa83b6aad0325756b67390831f7dbfa5839c9630" diff --git a/changelog.d/2-wire-builds/helm-oci-dependency b/changelog.d/2-wire-builds/helm-oci-dependency new file mode 100644 index 000000000..148f092f1 --- /dev/null +++ b/changelog.d/2-wire-builds/helm-oci-dependency @@ -0,0 +1 @@ +Changed: Updated nix pkgs for OCI helm charts From 029203cf958739ba80f4f50bbd2c3345410b6072 Mon Sep 17 00:00:00 2001 From: Stefan Matting Date: Tue, 6 Oct 2026 16:05:42 +0200 Subject: [PATCH 08/14] fix WPB-29193: support OCI helm chart repos in proc_pull_charts.sh The build.json now contains oci:// repo URLs which don't work with `helm repo add`. Handle OCI repos by pulling directly via the full URL, while keeping the existing `helm repo add` flow for traditional HTTP repos. Co-Authored-By: Claude Opus 4.6 --- offline/tasks/proc_pull_charts.sh | 24 +++++++++++++++--------- 1 file changed, 15 insertions(+), 9 deletions(-) diff --git a/offline/tasks/proc_pull_charts.sh b/offline/tasks/proc_pull_charts.sh index fa3c60da9..63bc03fed 100755 --- a/offline/tasks/proc_pull_charts.sh +++ b/offline/tasks/proc_pull_charts.sh @@ -1,4 +1,5 @@ #!/usr/bin/env bash +# shellcheck disable=SC2190 set -euo pipefail OUTPUT_DIR="" @@ -70,16 +71,21 @@ pull_charts() { repo=${parts[1]} version=${parts[2]} - # we add and update the repo only the first time we see it to speed up the process - repo_short_name=${repos[$repo]} - if [ "$repo_short_name" == "" ]; then - n=${#repos[@]} - repo_short_name="repo_$((n+1))" - repos[$repo]=$repo_short_name - helm repo add "$repo_short_name" "$repo" - helm repo update "$repo_short_name" + if [[ "$repo" == oci://* ]]; then + # OCI repos are pulled directly, no helm repo add needed + (cd "${OUTPUT_DIR}"/charts; helm pull --version "$version" --untar "$repo/$name") + else + # For traditional repos, add and update only on first encounter + repo_short_name=${repos[$repo]} + if [ "$repo_short_name" == "" ]; then + n=${#repos[@]} + repo_short_name="repo_$((n+1))" + repos[$repo]=$repo_short_name + helm repo add "$repo_short_name" "$repo" + helm repo update "$repo_short_name" + fi + (cd "${OUTPUT_DIR}"/charts; helm pull --version "$version" --untar "$repo_short_name/$name") fi - (cd "${OUTPUT_DIR}"/charts; helm pull --version "$version" --untar "$repo_short_name/$name") done echo "Pulling charts done." From 228af4025f1ab272f3d06117d05196f848568fd0 Mon Sep 17 00:00:00 2001 From: Leonhardt Wille Date: Tue, 17 Nov 2026 11:30:50 +0100 Subject: [PATCH 09/14] fix CO-17: pull oci:// charts by full reference with registry auth The release-manager build.json (wire-builds 2026-q4-from-rm) lists OCI charts with the full chart reference as `repo` (e.g. oci://quay.io/wire/charts/dev/wire-server), and the chart name can differ from the build.json key (webapp -> wire-webapp). - pull OCI charts by `repo` directly instead of `repo/name` - extract every chart to charts/ so the bundle layout stays stable - log in to the OCI registry once when OCI_REGISTRY_USERNAME/PASSWORD are set; private charts (e.g. team-settings) need it - wire QUAY_WIRE_CI_GOV_READONLY_* secrets into the offline builds - allow overriding the build.json source with WIRE_BUILD= --- .github/workflows/offline.yml | 6 +++ changelog.d/2-wire-builds/helm-oci-charts | 1 + offline/tasks/proc_pull_charts.sh | 46 +++++++++++++++++++---- 3 files changed, 46 insertions(+), 7 deletions(-) create mode 100644 changelog.d/2-wire-builds/helm-oci-charts diff --git a/.github/workflows/offline.yml b/.github/workflows/offline.yml index ecc9b3957..2d64d0e6d 100644 --- a/.github/workflows/offline.yml +++ b/.github/workflows/offline.yml @@ -65,6 +65,8 @@ jobs: env: GPG_PRIVATE_KEY: '${{ secrets.GPG_PRIVATE_KEY }}' DOCKER_LOGIN: '${{ secrets.DOCKER_LOGIN }}' + OCI_REGISTRY_USERNAME: '${{ secrets.QUAY_WIRE_CI_GOV_READONLY_USERNAME }}' + OCI_REGISTRY_PASSWORD: '${{ secrets.QUAY_WIRE_CI_GOV_READONLY_PASSWORD }}' - name: Copy default build assets tarball to S3 run: | @@ -214,6 +216,8 @@ jobs: env: GPG_PRIVATE_KEY: "${{ secrets.GPG_PRIVATE_KEY }}" DOCKER_LOGIN: "${{ secrets.DOCKER_LOGIN }}" + OCI_REGISTRY_USERNAME: "${{ secrets.QUAY_WIRE_CI_GOV_READONLY_USERNAME }}" + OCI_REGISTRY_PASSWORD: "${{ secrets.QUAY_WIRE_CI_GOV_READONLY_PASSWORD }}" - name: Copy dev build assets tarball to S3 run: | @@ -277,6 +281,8 @@ jobs: env: GPG_PRIVATE_KEY: "${{ secrets.GPG_PRIVATE_KEY }}" DOCKER_LOGIN: "${{ secrets.DOCKER_LOGIN }}" + OCI_REGISTRY_USERNAME: "${{ secrets.QUAY_WIRE_CI_GOV_READONLY_USERNAME }}" + OCI_REGISTRY_PASSWORD: "${{ secrets.QUAY_WIRE_CI_GOV_READONLY_PASSWORD }}" - name: Copy min build assets tarball to S3 run: | diff --git a/changelog.d/2-wire-builds/helm-oci-charts b/changelog.d/2-wire-builds/helm-oci-charts new file mode 100644 index 000000000..427fc282c --- /dev/null +++ b/changelog.d/2-wire-builds/helm-oci-charts @@ -0,0 +1 @@ +Added: support oci:// helm chart references in build.json (pulled by full reference, authenticated via OCI_REGISTRY_USERNAME/OCI_REGISTRY_PASSWORD), extract every chart to charts/, and allow overriding the build.json source via WIRE_BUILD diff --git a/offline/tasks/proc_pull_charts.sh b/offline/tasks/proc_pull_charts.sh index 63bc03fed..d4e342f94 100755 --- a/offline/tasks/proc_pull_charts.sh +++ b/offline/tasks/proc_pull_charts.sh @@ -3,6 +3,8 @@ set -euo pipefail OUTPUT_DIR="" +# build.json to source chart versions from; override with WIRE_BUILD= +WIRE_BUILD="https://raw.githubusercontent.com/wireapp/wire-builds/refs/heads/pinned-offline-5.34.0/build.json" # Default exclude lists HELM_CHART_EXCLUDE_LIST="inbucket,wire-server-enterprise,demo-smtp" @@ -16,6 +18,9 @@ do HELM_CHART_EXCLUDE_LIST=*) HELM_CHART_EXCLUDE_LIST="${arg#*=}" ;; + WIRE_BUILD=*) + WIRE_BUILD="${arg#*=}" + ;; *) echo "Unknown argument: $arg" >&2 exit 1 @@ -25,7 +30,7 @@ done # Check if OUTPUT_DIR is set if [[ -z "$OUTPUT_DIR" ]]; then - echo "usage: $0 OUTPUT_DIR=\"output-dir\" [HELM_CHART_EXCLUDE_LIST=\"chart1,chart2,...\"]" >&2 + echo "usage: $0 OUTPUT_DIR=\"output-dir\" [HELM_CHART_EXCLUDE_LIST=\"chart1,chart2,...\"] [WIRE_BUILD=\"build.json-url\"]" >&2 exit 1 fi @@ -47,9 +52,27 @@ wire_build_chart_release () { ' "${OUTPUT_DIR}/build.json" } +# Log in to an OCI registry once, if credentials are available +# (OCI_REGISTRY_USERNAME / OCI_REGISTRY_PASSWORD). Public charts are pulled +# anonymously when no credentials are set. +declare -A registry_logged_in +oci_registry_login() { + local registry="$1" + if [[ -n "${registry_logged_in[$registry]}" || -z "${OCI_REGISTRY_USERNAME:-}" ]]; then + return 0 + fi + echo "Logging in to OCI registry $registry as $OCI_REGISTRY_USERNAME" + helm registry login "$registry" --username "$OCI_REGISTRY_USERNAME" --password-stdin <<< "${OCI_REGISTRY_PASSWORD:?OCI_REGISTRY_PASSWORD must be set}" + registry_logged_in[$registry]=1 +} + # pull_charts() accepts charts in format # -# on stdin +# on stdin. +# For OCI charts, is the full chart reference +# (e.g. oci://quay.io/wire/charts/dev/wire-server), whose last path segment +# may differ from (e.g. webapp -> wire-webapp). +# Every chart is extracted to ${OUTPUT_DIR}/charts/. pull_charts() { echo "Pulling charts into ${OUTPUT_DIR}/charts ..." mkdir -p "${OUTPUT_DIR}"/charts @@ -72,8 +95,10 @@ pull_charts() { version=${parts[2]} if [[ "$repo" == oci://* ]]; then - # OCI repos are pulled directly, no helm repo add needed - (cd "${OUTPUT_DIR}"/charts; helm pull --version "$version" --untar "$repo/$name") + # OCI charts are pulled directly by reference, no helm repo add needed + registry=${repo#oci://} + oci_registry_login "${registry%%/*}" + chart_ref="$repo" else # For traditional repos, add and update only on first encounter repo_short_name=${repos[$repo]} @@ -84,12 +109,19 @@ pull_charts() { helm repo add "$repo_short_name" "$repo" helm repo update "$repo_short_name" fi - (cd "${OUTPUT_DIR}"/charts; helm pull --version "$version" --untar "$repo_short_name/$name") + chart_ref="$repo_short_name/$name" fi + + # untar into a scratch dir, then move to charts/ so the layout does + # not depend on the chart's own name + untar_dir=$(mktemp -d) + helm pull --version "$version" --untar --untardir "$untar_dir" "$chart_ref" + rm -rf "${OUTPUT_DIR:?}/charts/${name}" + mv "$untar_dir"/* "${OUTPUT_DIR}/charts/${name}" + rm -rf "$untar_dir" done echo "Pulling charts done." } -wire_build="https://raw.githubusercontent.com/wireapp/wire-builds/refs/heads/pinned-offline-5.34.0/build.json" -wire_build_chart_release "$wire_build" | pull_charts +wire_build_chart_release "$WIRE_BUILD" | pull_charts From c5aaacd5ad073f3a5831bb8bc9322e6f6e80e6c7 Mon Sep 17 00:00:00 2001 From: Leonhardt Wille Date: Tue, 17 Nov 2026 11:32:10 +0100 Subject: [PATCH 10/14] fix CO-17: source charts from wire-builds 2026-q4-from-rm The Bund Q4 build.json is generated by wire-release-manager on this branch and references OCI charts on quay.io. --- changelog.d/2-wire-builds/build-json-2026-q4 | 1 + offline/tasks/proc_pull_charts.sh | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 changelog.d/2-wire-builds/build-json-2026-q4 diff --git a/changelog.d/2-wire-builds/build-json-2026-q4 b/changelog.d/2-wire-builds/build-json-2026-q4 new file mode 100644 index 000000000..c5a7db503 --- /dev/null +++ b/changelog.d/2-wire-builds/build-json-2026-q4 @@ -0,0 +1 @@ +Changed: source helm charts from the wire-builds 2026-q4-from-rm build.json (Bund Q4, OCI charts) diff --git a/offline/tasks/proc_pull_charts.sh b/offline/tasks/proc_pull_charts.sh index d4e342f94..5ec83d647 100755 --- a/offline/tasks/proc_pull_charts.sh +++ b/offline/tasks/proc_pull_charts.sh @@ -4,7 +4,7 @@ set -euo pipefail OUTPUT_DIR="" # build.json to source chart versions from; override with WIRE_BUILD= -WIRE_BUILD="https://raw.githubusercontent.com/wireapp/wire-builds/refs/heads/pinned-offline-5.34.0/build.json" +WIRE_BUILD="https://raw.githubusercontent.com/wireapp/wire-builds/refs/heads/2026-q4-from-rm/build.json" # Default exclude lists HELM_CHART_EXCLUDE_LIST="inbucket,wire-server-enterprise,demo-smtp" From f6110ed2a91ef302b9bf79ff682590953a466d7a Mon Sep 17 00:00:00 2001 From: Leonhardt Wille Date: Tue, 17 Nov 2026 16:00:33 +0100 Subject: [PATCH 11/14] fix CO-17: pull charts and images with all-repos read-only robot Use QUAY_WIRE_ALL_REPOS_READONLY_* for OCI helm charts and for container image pulls (DOCKER_LOGIN) in the offline build steps. Pushing the wire-server-deploy container still uses DOCKER_LOGIN. --- .github/workflows/offline.yml | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/.github/workflows/offline.yml b/.github/workflows/offline.yml index 2d64d0e6d..b5d3ba445 100644 --- a/.github/workflows/offline.yml +++ b/.github/workflows/offline.yml @@ -64,9 +64,10 @@ jobs: run: ./offline/default-build/build.sh env: GPG_PRIVATE_KEY: '${{ secrets.GPG_PRIVATE_KEY }}' - DOCKER_LOGIN: '${{ secrets.DOCKER_LOGIN }}' - OCI_REGISTRY_USERNAME: '${{ secrets.QUAY_WIRE_CI_GOV_READONLY_USERNAME }}' - OCI_REGISTRY_PASSWORD: '${{ secrets.QUAY_WIRE_CI_GOV_READONLY_PASSWORD }}' + # read-only robot for pulling helm charts (OCI) and container images from quay.io + DOCKER_LOGIN: '${{ secrets.QUAY_WIRE_ALL_REPOS_READONLY_USERNAME }}:${{ secrets.QUAY_WIRE_ALL_REPOS_READONLY_PASSWORD }}' + OCI_REGISTRY_USERNAME: '${{ secrets.QUAY_WIRE_ALL_REPOS_READONLY_USERNAME }}' + OCI_REGISTRY_PASSWORD: '${{ secrets.QUAY_WIRE_ALL_REPOS_READONLY_PASSWORD }}' - name: Copy default build assets tarball to S3 run: | @@ -215,9 +216,10 @@ jobs: run: ./offline/demo-build/build.sh env: GPG_PRIVATE_KEY: "${{ secrets.GPG_PRIVATE_KEY }}" - DOCKER_LOGIN: "${{ secrets.DOCKER_LOGIN }}" - OCI_REGISTRY_USERNAME: "${{ secrets.QUAY_WIRE_CI_GOV_READONLY_USERNAME }}" - OCI_REGISTRY_PASSWORD: "${{ secrets.QUAY_WIRE_CI_GOV_READONLY_PASSWORD }}" + # read-only robot for pulling helm charts (OCI) and container images from quay.io + DOCKER_LOGIN: "${{ secrets.QUAY_WIRE_ALL_REPOS_READONLY_USERNAME }}:${{ secrets.QUAY_WIRE_ALL_REPOS_READONLY_PASSWORD }}" + OCI_REGISTRY_USERNAME: "${{ secrets.QUAY_WIRE_ALL_REPOS_READONLY_USERNAME }}" + OCI_REGISTRY_PASSWORD: "${{ secrets.QUAY_WIRE_ALL_REPOS_READONLY_PASSWORD }}" - name: Copy dev build assets tarball to S3 run: | @@ -280,9 +282,10 @@ jobs: run: ./offline/min-build/build.sh env: GPG_PRIVATE_KEY: "${{ secrets.GPG_PRIVATE_KEY }}" - DOCKER_LOGIN: "${{ secrets.DOCKER_LOGIN }}" - OCI_REGISTRY_USERNAME: "${{ secrets.QUAY_WIRE_CI_GOV_READONLY_USERNAME }}" - OCI_REGISTRY_PASSWORD: "${{ secrets.QUAY_WIRE_CI_GOV_READONLY_PASSWORD }}" + # read-only robot for pulling helm charts (OCI) and container images from quay.io + DOCKER_LOGIN: "${{ secrets.QUAY_WIRE_ALL_REPOS_READONLY_USERNAME }}:${{ secrets.QUAY_WIRE_ALL_REPOS_READONLY_PASSWORD }}" + OCI_REGISTRY_USERNAME: "${{ secrets.QUAY_WIRE_ALL_REPOS_READONLY_USERNAME }}" + OCI_REGISTRY_PASSWORD: "${{ secrets.QUAY_WIRE_ALL_REPOS_READONLY_PASSWORD }}" - name: Copy min build assets tarball to S3 run: | From 0bed65eb59d37f5b804e01d5d5e6454ac8e773b2 Mon Sep 17 00:00:00 2001 From: Leonhardt Wille Date: Wed, 25 Nov 2026 16:14:07 +0100 Subject: [PATCH 12/14] chore: add hcloud CLI to nix env Used to inspect and clean up the Hetzner CI project used by offline/cd*.sh. --- default.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/default.nix b/default.nix index f30fba2e2..8177b78ca 100644 --- a/default.nix +++ b/default.nix @@ -79,6 +79,8 @@ rec { curl gawk oras + # Hetzner Cloud CLI, for debugging the offline CD environment (offline/cd.sh) + hcloud niv nix-prefetch-docker From 6185c182f548f79bb125ad23a3e53ee71bf17cd6 Mon Sep 17 00:00:00 2001 From: Leonhardt Wille Date: Wed, 25 Nov 2026 16:14:58 +0100 Subject: [PATCH 13/14] feat CO-17: build offline bundles for any wire-builds ref via workflow_dispatch Lets release managers build a bundle for a build.json in wireapp/wire-builds (e.g. a hotfix release candidate) without committing a new pin to wire-server-deploy: gh workflow run offline.yml --ref \ -f profile=min -f wire_build_ref= - new workflow_dispatch inputs `profile` (same meaning as the build-* labels) and `wire_build_ref` - the ref is turned into the build.json URL and passed via env only, so the input is never interpolated into a run script - proc_pull_charts.sh honours WIRE_BUILD from the environment - dispatch builds upload as -wire-builds- so they don't overwrite the regular bundle of the same commit; the verify jobs and cd*.sh take the bundle name via COMMIT_HASH --- .github/workflows/offline.yml | 53 +++++++++++++++++-- .../3-deploy-builds/offline-workflow-dispatch | 1 + offline/cd.sh | 3 +- offline/cd_demo.sh | 3 +- offline/cd_staging.sh | 3 +- offline/tasks/proc_pull_charts.sh | 5 +- 6 files changed, 60 insertions(+), 8 deletions(-) create mode 100644 changelog.d/3-deploy-builds/offline-workflow-dispatch diff --git a/.github/workflows/offline.yml b/.github/workflows/offline.yml index b5d3ba445..1cddc65a0 100644 --- a/.github/workflows/offline.yml +++ b/.github/workflows/offline.yml @@ -16,6 +16,12 @@ # # Push to master/develop: Always builds all profiles regardless of labels # +# Manual builds (workflow_dispatch), e.g. for a release candidate in wire-builds: +# gh workflow run offline.yml --ref -f profile=min -f wire_build_ref= +# - 'profile' selects the profiles like the labels above +# - 'wire_build_ref' selects the build.json from wireapp/wire-builds (empty: script default) +# - bundles are uploaded as wire-server-deploy-static[-]--wire-builds-.tgz +# on: push: branches: ["**"] @@ -29,12 +35,31 @@ on: paths-ignore: - "*.md" - "**/*.md" + workflow_dispatch: + inputs: + profile: + description: "Profile(s) to build (same meaning as the build-* PR labels)" + type: choice + options: [min, default, dev, wiab-staging, all] + default: min + wire_build_ref: + description: "wireapp/wire-builds commit, branch or tag to take build.json from (empty: default of proc_pull_charts.sh)" + type: string + required: false + default: "" + +env: + # build.json URL for workflow_dispatch builds; empty otherwise (the scripts then use their default) + WIRE_BUILD: ${{ inputs.wire_build_ref != '' && format('https://raw.githubusercontent.com/wireapp/wire-builds/{0}/build.json', inputs.wire_build_ref) || '' }} + WIRE_BUILD_REF: ${{ inputs.wire_build_ref }} + jobs: # Build default profile and create local assets build-default: name: Build default profile if: | (github.event_name == 'push' && github.ref == 'refs/heads/master') || + (github.event_name == 'workflow_dispatch' && (inputs.profile == 'all' || inputs.profile == 'default' || inputs.profile == 'wiab-staging')) || contains(github.event.pull_request.labels.*.name, 'build-all') || contains(github.event.pull_request.labels.*.name, 'build-default') || contains(github.event.pull_request.labels.*.name, 'build-wiab-staging') @@ -57,7 +82,12 @@ jobs: - name: Get upload name id: upload_name - run: echo "UPLOAD_NAME=$GITHUB_SHA" >> $GITHUB_OUTPUT + run: | + name="$GITHUB_SHA" + if [[ -n "$WIRE_BUILD_REF" ]]; then + name="${name}-wire-builds-$(printf '%s' "$WIRE_BUILD_REF" | tr -c 'A-Za-z0-9._-' '-' | cut -c1-64)" + fi + echo "UPLOAD_NAME=$name" >> "$GITHUB_OUTPUT" # default profile build - name: Process the default profile build @@ -83,6 +113,7 @@ jobs: needs: build-default if: | (github.event_name == 'push' && github.ref == 'refs/heads/master') || + (github.event_name == 'workflow_dispatch' && (inputs.profile == 'all' || inputs.profile == 'default')) || contains(github.event.pull_request.labels.*.name, 'build-all') || contains(github.event.pull_request.labels.*.name, 'build-default') runs-on: @@ -111,6 +142,7 @@ jobs: run: ./offline/cd.sh env: HCLOUD_TOKEN: '${{ secrets.HCLOUD_TOKEN }}' + COMMIT_HASH: ${{ needs.build-default.outputs.upload_name }} - name: Clean up hetzner environment; just in case # Skip when terraform was never installed (earlier step failed): nothing was deployed. @@ -125,6 +157,7 @@ jobs: needs: build-default if: | (github.event_name == 'push' && github.ref == 'refs/heads/master') || + (github.event_name == 'workflow_dispatch' && (inputs.profile == 'all' || inputs.profile == 'wiab-staging')) || contains(github.event.pull_request.labels.*.name, 'build-all') || contains(github.event.pull_request.labels.*.name, 'build-wiab-staging') runs-on: @@ -153,6 +186,7 @@ jobs: run: ./offline/cd_staging.sh env: HCLOUD_TOKEN: '${{ secrets.HCLOUD_TOKEN }}' + COMMIT_HASH: ${{ needs.build-default.outputs.upload_name }} - name: Clean up hetzner wiab-staging environment; just in case # Skip when terraform was never installed (earlier step failed): nothing was deployed. @@ -191,6 +225,7 @@ jobs: name: Build dev profile if: | (github.event_name == 'push' && github.ref == 'refs/heads/master') || + (github.event_name == 'workflow_dispatch' && (inputs.profile == 'all' || inputs.profile == 'dev')) || contains(github.event.pull_request.labels.*.name, 'build-all') || contains(github.event.pull_request.labels.*.name, 'build-dev') runs-on: @@ -210,7 +245,12 @@ jobs: - name: Get upload name id: upload_name - run: echo "UPLOAD_NAME=$GITHUB_SHA" >> $GITHUB_OUTPUT + run: | + name="$GITHUB_SHA" + if [[ -n "$WIRE_BUILD_REF" ]]; then + name="${name}-wire-builds-$(printf '%s' "$WIRE_BUILD_REF" | tr -c 'A-Za-z0-9._-' '-' | cut -c1-64)" + fi + echo "UPLOAD_NAME=$name" >> "$GITHUB_OUTPUT" - name: Process the dev profile build run: ./offline/demo-build/build.sh @@ -241,6 +281,7 @@ jobs: run: ./offline/cd_demo.sh env: HCLOUD_TOKEN: '${{ secrets.HCLOUD_TOKEN }}' + COMMIT_HASH: ${{ steps.upload_name.outputs.UPLOAD_NAME }} - name: Clean up hetzner wiab environment; just in case # Skip when terraform was never installed (earlier step failed): nothing was deployed. @@ -257,6 +298,7 @@ jobs: name: Build min profile if: | (github.event_name == 'push' && github.ref == 'refs/heads/master') || + (github.event_name == 'workflow_dispatch' && (inputs.profile == 'all' || inputs.profile == 'min')) || contains(github.event.pull_request.labels.*.name, 'build-all') || contains(github.event.pull_request.labels.*.name, 'build-min') runs-on: @@ -276,7 +318,12 @@ jobs: - name: Get upload name id: upload_name - run: echo "UPLOAD_NAME=$GITHUB_SHA" >> $GITHUB_OUTPUT + run: | + name="$GITHUB_SHA" + if [[ -n "$WIRE_BUILD_REF" ]]; then + name="${name}-wire-builds-$(printf '%s' "$WIRE_BUILD_REF" | tr -c 'A-Za-z0-9._-' '-' | cut -c1-64)" + fi + echo "UPLOAD_NAME=$name" >> "$GITHUB_OUTPUT" - name: Process the min profile build run: ./offline/min-build/build.sh diff --git a/changelog.d/3-deploy-builds/offline-workflow-dispatch b/changelog.d/3-deploy-builds/offline-workflow-dispatch new file mode 100644 index 000000000..db02dd0fb --- /dev/null +++ b/changelog.d/3-deploy-builds/offline-workflow-dispatch @@ -0,0 +1 @@ +Added: the offline workflow can be started manually (workflow_dispatch) with a profile and a wire-builds ref, to build bundles for any build.json without committing to wire-server-deploy diff --git a/offline/cd.sh b/offline/cd.sh index a67e9f211..93d3f5e2e 100755 --- a/offline/cd.sh +++ b/offline/cd.sh @@ -7,7 +7,8 @@ TF_DIR="${CD_DIR}/../terraform/examples/wire-server-deploy-offline-hetzner" VALUES_DIR="${CD_DIR}/../values" TF_VARS_FILE="${TF_DIR}/retry-selection.auto.tfvars.json" -COMMIT_HASH="${GITHUB_SHA}" +# name of the uploaded bundle; overridden by workflow_dispatch builds +COMMIT_HASH="${COMMIT_HASH:-$GITHUB_SHA}" ARTIFACT="wire-server-deploy-static-${COMMIT_HASH}" # Retry matrix diff --git a/offline/cd_demo.sh b/offline/cd_demo.sh index 2ce41674a..ba11964ff 100755 --- a/offline/cd_demo.sh +++ b/offline/cd_demo.sh @@ -13,7 +13,8 @@ INVENTORY_DIR="${ANSIBLE_DIR}/inventory/demo" INVENTORY_FILE="${INVENTORY_DIR}/host.yml" TF_VARS_FILE="${TF_DIR}/retry-selection.auto.tfvars.json" TEST_USER="demo" -COMMIT_HASH="${GITHUB_SHA}" +# name of the uploaded bundle; overridden by workflow_dispatch builds +COMMIT_HASH="${COMMIT_HASH:-$GITHUB_SHA}" # Retry matrix # Locations are tried in order and exhaust all server types before moving on. diff --git a/offline/cd_staging.sh b/offline/cd_staging.sh index dc344a4db..2e6d4cadc 100755 --- a/offline/cd_staging.sh +++ b/offline/cd_staging.sh @@ -6,7 +6,8 @@ CD_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" TF_DIR="${CD_DIR}/../terraform/examples/wiab-staging-hetzner" VALUES_DIR="${CD_DIR}/../values" TF_VARS_FILE="${TF_DIR}/retry-selection.auto.tfvars.json" -COMMIT_HASH="${GITHUB_SHA}" +# name of the uploaded bundle; overridden by workflow_dispatch builds +COMMIT_HASH="${COMMIT_HASH:-$GITHUB_SHA}" ARTIFACT="wire-server-deploy-static-${COMMIT_HASH}" # Retry matrix diff --git a/offline/tasks/proc_pull_charts.sh b/offline/tasks/proc_pull_charts.sh index 5ec83d647..ec9684aa6 100755 --- a/offline/tasks/proc_pull_charts.sh +++ b/offline/tasks/proc_pull_charts.sh @@ -3,8 +3,9 @@ set -euo pipefail OUTPUT_DIR="" -# build.json to source chart versions from; override with WIRE_BUILD= -WIRE_BUILD="https://raw.githubusercontent.com/wireapp/wire-builds/refs/heads/2026-q4-from-rm/build.json" +# build.json to source chart versions from; override with the WIRE_BUILD= +# argument or the WIRE_BUILD environment variable +WIRE_BUILD="${WIRE_BUILD:-https://raw.githubusercontent.com/wireapp/wire-builds/refs/heads/2026-q4-from-rm/build.json}" # Default exclude lists HELM_CHART_EXCLUDE_LIST="inbucket,wire-server-enterprise,demo-smtp" From a2833e89536b764ddd539d4e6cf3728d34fc6361 Mon Sep 17 00:00:00 2001 From: Leonhardt Wille Date: Wed, 25 Nov 2026 16:28:16 +0100 Subject: [PATCH 14/14] feat CO-17: attach bundles of manual offline builds to the run workflow_dispatch builds are handed out to people, so also attach the bundle to the run (actions/upload-artifact@v7, archive: false: downloads as the plain .tgz, kept 14 days). PR and master builds stay S3-only to save Actions storage (bundles are 5-11 GB). --- .github/workflows/offline.yml | 54 ++++++++++++++++++- .../3-deploy-builds/offline-workflow-dispatch | 2 +- 2 files changed, 54 insertions(+), 2 deletions(-) diff --git a/.github/workflows/offline.yml b/.github/workflows/offline.yml index 1cddc65a0..b08c3994a 100644 --- a/.github/workflows/offline.yml +++ b/.github/workflows/offline.yml @@ -20,7 +20,8 @@ # gh workflow run offline.yml --ref -f profile=min -f wire_build_ref= # - 'profile' selects the profiles like the labels above # - 'wire_build_ref' selects the build.json from wireapp/wire-builds (empty: script default) -# - bundles are uploaded as wire-server-deploy-static[-]--wire-builds-.tgz +# - bundles are uploaded to S3 as wire-server-deploy-static[-]--wire-builds-.tgz +# and attached to the run (kept 14 days) # on: push: @@ -108,6 +109,23 @@ jobs: AWS_SECRET_ACCESS_KEY: '${{ secrets.AWS_SECRET_ACCESS_KEY }}' AWS_REGION: "eu-west-1" + # Manual builds are handed out to people: also attach the bundle to the run + # (as a plain .tgz, not zipped). S3 stays the permanent copy. + - name: Name default bundle for attaching to the run + if: github.event_name == 'workflow_dispatch' + run: ln -f "offline/default-build/output/assets.tgz" "offline/default-build/output/wire-server-deploy-static-${UPLOAD_NAME}.tgz" + env: + UPLOAD_NAME: ${{ steps.upload_name.outputs.UPLOAD_NAME }} + + - name: Attach default bundle to the run + if: github.event_name == 'workflow_dispatch' + uses: actions/upload-artifact@v7 + with: + path: offline/default-build/output/wire-server-deploy-static-${{ steps.upload_name.outputs.UPLOAD_NAME }}.tgz + archive: false + retention-days: 14 + if-no-files-found: error + verify-default: name: Verify default profile needs: build-default @@ -270,6 +288,23 @@ jobs: AWS_SECRET_ACCESS_KEY: "${{ secrets.AWS_SECRET_ACCESS_KEY }}" AWS_REGION: "eu-west-1" + # Manual builds are handed out to people: also attach the bundle to the run + # (as a plain .tgz, not zipped). S3 stays the permanent copy. + - name: Name dev bundle for attaching to the run + if: github.event_name == 'workflow_dispatch' + run: ln -f "offline/demo-build/output/assets.tgz" "offline/demo-build/output/wire-server-deploy-static-demo-${UPLOAD_NAME}.tgz" + env: + UPLOAD_NAME: ${{ steps.upload_name.outputs.UPLOAD_NAME }} + + - name: Attach dev bundle to the run + if: github.event_name == 'workflow_dispatch' + uses: actions/upload-artifact@v7 + with: + path: offline/demo-build/output/wire-server-deploy-static-demo-${{ steps.upload_name.outputs.UPLOAD_NAME }}.tgz + archive: false + retention-days: 14 + if-no-files-found: error + - name: Install terraform id: install-terraform uses: hashicorp/setup-terraform@v3 @@ -343,5 +378,22 @@ jobs: AWS_SECRET_ACCESS_KEY: "${{ secrets.AWS_SECRET_ACCESS_KEY }}" AWS_REGION: "eu-west-1" + # Manual builds are handed out to people: also attach the bundle to the run + # (as a plain .tgz, not zipped). S3 stays the permanent copy. + - name: Name min bundle for attaching to the run + if: github.event_name == 'workflow_dispatch' + run: ln -f "offline/min-build/output/assets.tgz" "offline/min-build/output/wire-server-deploy-static-min-${UPLOAD_NAME}.tgz" + env: + UPLOAD_NAME: ${{ steps.upload_name.outputs.UPLOAD_NAME }} + + - name: Attach min bundle to the run + if: github.event_name == 'workflow_dispatch' + uses: actions/upload-artifact@v7 + with: + path: offline/min-build/output/wire-server-deploy-static-min-${{ steps.upload_name.outputs.UPLOAD_NAME }}.tgz + archive: false + retention-days: 14 + if-no-files-found: error + - name: Cleanup min build assets run: rm -rf offline/min-build/output/ diff --git a/changelog.d/3-deploy-builds/offline-workflow-dispatch b/changelog.d/3-deploy-builds/offline-workflow-dispatch index db02dd0fb..9d83cc1d2 100644 --- a/changelog.d/3-deploy-builds/offline-workflow-dispatch +++ b/changelog.d/3-deploy-builds/offline-workflow-dispatch @@ -1 +1 @@ -Added: the offline workflow can be started manually (workflow_dispatch) with a profile and a wire-builds ref, to build bundles for any build.json without committing to wire-server-deploy +Added: the offline workflow can be started manually (workflow_dispatch) with a profile and a wire-builds ref, to build bundles for any build.json without committing to wire-server-deploy; manual builds also attach the bundle to the run (kept 14 days)