Skip to content

Commit

Permalink
release: add demo artifacts
Browse files Browse the repository at this point in the history
Co-authored-by: Markus Rudy <[email protected]>
  • Loading branch information
wirungu and burgerdev committed Apr 23, 2024
1 parent e788e62 commit 2233e9b
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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%@*}
Expand All @@ -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
Expand All @@ -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 \
Expand All @@ -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 }}
Expand Down

0 comments on commit 2233e9b

Please sign in to comment.