Skip to content

Commit

Permalink
just: use resources from release for demodir
Browse files Browse the repository at this point in the history
  • Loading branch information
burgerdev committed Apr 30, 2024
1 parent 831355e commit 9d7d196
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions justfile
Original file line number Diff line number Diff line change
Expand Up @@ -214,16 +214,11 @@ lint:

demodir namespace="default": coordinator initializer
#!/usr/bin/env bash
set -eu
d=$(mktemp -d)
echo "Creating demo directory at ${d}" >&2
cp -R ./deployments/emojivoto "${d}/deployment"
rm -f "${d}/deployment/coordinator.yml" "${d}/deployment/ns.yml"
nix run .#scripts.patch-contrast-image-hashes -- "${d}/deployment"
nix run .#kypatch images -- "${d}/deployment" \
--replace ghcr.io/edgelesssys ${container_registry}
nix run .#kypatch namespace -- "${d}/deployment" \
--replace edg-default {{ namespace }}
nix run .#scripts.fetch-latest-contrast -- {{ namespace }} "${d}"
unzip -d "${d}" "${d}/emojivoto-demo.zip"
echo "Demo directory ready at ${d}" >&2
echo "${d}"
Expand Down

0 comments on commit 9d7d196

Please sign in to comment.