diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index bf2624ee7e..a6373302b1 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -188,9 +188,10 @@ jobs: run: | coordinatorImg=$(nix run .#containers.push-coordinator -- "$container_registry/contrast/coordinator") nodeInstallerImg=$(nix run .#containers.push-node-installer -- "$container_registry/contrast/node-installer") - nix run .#containers.push-initializer -- "$container_registry/contrast/initializer" + initializerImg=$(nix run .#containers.push-initializer -- "$container_registry/contrast/initializer") echo "coordinatorImg=$coordinatorImg" | tee -a "$GITHUB_ENV" echo "nodeInstallerImg=$nodeInstallerImg" | tee -a "$GITHUB_ENV" + echo "initializerImg=$initializerImg" | tee -a "$GITHUB_ENV" - name: Add tag to Coordinator image run: | frontCoord=${coordinatorImg%@*} @@ -199,6 +200,10 @@ jobs: frontNodeInstaller=${nodeInstallerImg%@*} backNodeInstaller=${nodeInstallerImg#*@} echo "nodeInstallerImgTagged=${frontNodeInstaller}:${{ inputs.version }}@${backNodeInstaller}" | tee -a "$GITHUB_ENV" + - name: Create file with image replacements + run: | + echo "ghcr.io/edgelesssys/contrast/coordinator:latest=$coordinatorImgTagged" > image-replacements.txt + echo "ghcr.io/edgelesssys/contrast/initializer:latest=$initializerImg" >> image-replacements.txt - name: Create portable coordinator resource definitions run: | mkdir -p workspace @@ -208,6 +213,8 @@ jobs: --replace "ghcr.io/edgelesssys/contrast/node-installer:latest" "$nodeInstallerImgTagged" nix run .#kypatch namespace -- workspace/runtime.yml \ --replace edg-default kube-system + nix run .#scripts.write-emojivoto-demo -- "./image-replacements.txt" "deployments/emojivoto-demo.yml" + zip -r deployments/emojivoto-demo.zip deployments/emojivoto-demo.yml - name: Update coordinator policy hash run: | yq < workspace/coordinator.yml \ @@ -232,6 +239,7 @@ jobs: result-cli/bin/contrast workspace/coordinator.yml workspace/runtime.yml + deployments/emojivoto-demo.zip - name: Reset temporary changes run: | git reset --hard ${{ needs.process-inputs.outputs.WORKING_BRANCH }}