From 451f2ea68a370c08a5b29eb3cadd120c86de39f4 Mon Sep 17 00:00:00 2001 From: Paul Meyer <49727155+katexochen@users.noreply.github.com> Date: Wed, 7 Aug 2024 09:54:03 +0200 Subject: [PATCH] release: pin tardev-snapshotter image Signed-off-by: Paul Meyer <49727155+katexochen@users.noreply.github.com> --- .github/workflows/release.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 9f72f31372..aea00b52b8 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -243,10 +243,12 @@ jobs: nodeInstallerImg=$(nix run .#containers.push-node-installer-microsoft -- "$container_registry/contrast/node-installer-microsoft") initializerImg=$(nix run .#containers.push-initializer -- "$container_registry/contrast/initializer") serviceMeshImg=$(nix run .#containers.push-service-mesh-proxy -- "$container_registry/contrast/service-mesh-proxy") + tardevSnapshotterImg=$(nix run .#containers.push-tardev-snapshotter -- "$container_registry/contrast/tardev-snapshotter") echo "coordinatorImg=$coordinatorImg" | tee -a "$GITHUB_ENV" echo "nodeInstallerImg=$nodeInstallerImg" | tee -a "$GITHUB_ENV" echo "initializerImg=$initializerImg" | tee -a "$GITHUB_ENV" echo "serviceMeshImg=$serviceMeshImg" | tee -a "$GITHUB_ENV" + echo "tardevSnapshotterImg=$tardevSnapshotterImg" | tee -a "$GITHUB_ENV" - name: Add tag to Coordinator image run: | tag() { @@ -258,6 +260,11 @@ jobs: echo "nodeInstallerImgTagged=$(tag "$nodeInstallerImg")" | tee -a "$GITHUB_ENV" echo "initializerImgTagged=$(tag "$initializerImg")" | tee -a "$GITHUB_ENV" echo "serviceMeshImgTagged=$(tag "$serviceMeshImg")" | tee -a "$GITHUB_ENV" + + tardevVer=$(nix eval --impure --expr "(builtins.getFlake \"git+file://$(pwd)?shallow=1\").outputs.legacyPackages.x86_64-linux.microsoft.tardev-snapshotter.version") + front=${tardevSnapshotterImg%@*} + back=${tardevSnapshotterImg#*@} + echo tardevSnapshotterImgTagged="$front:$tardevVer@$back" | tee -a "$GITHUB_ENV" - name: Create file with image replacements run: | { @@ -265,6 +272,7 @@ jobs: echo "ghcr.io/edgelesssys/contrast/initializer:latest=$initializerImgTagged" echo "ghcr.io/edgelesssys/contrast/service-mesh-proxy:latest=$serviceMeshImgTagged" echo "ghcr.io/edgelesssys/contrast/node-installer-microsoft:latest=$nodeInstallerImgTagged" + echo "ghcr.io/edgelesssys/contrast/tardev-snapshotter:latest=$tardevSnapshotterImgTagged" } > image-replacements.txt - name: Upload image replacements file (for main branch PR) uses: actions/upload-artifact@0b2256b8c012f0828dc542b3febcab082c67f72b # v4.3.4