Skip to content

Commit

Permalink
release: expose coordinator and demo
Browse files Browse the repository at this point in the history
  • Loading branch information
burgerdev committed May 3, 2024
1 parent 25f6bc7 commit 0bdb16d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ jobs:
mkdir -p workspace
nix run .#scripts.write-coordinator-yaml -- "${coordinatorImgTagged}" > workspace/coordinator.yml
nix shell .#contrast --command resourcegen --namespace kube-system --image-replacements ./image-replacements.txt runtime > workspace/runtime.yml
nix shell .#contrast --command resourcegen --image-replacements ./image-replacements.txt emojivoto > deployment/emojivoto-demo.yml
nix shell .#contrast --command resourcegen --image-replacements ./image-replacements.txt --add-load-balancers emojivoto > deployment/emojivoto-demo.yml
zip -r deployment/emojivoto-demo.zip deployment/emojivoto-demo.yml
- name: Update coordinator policy hash
run: |
Expand Down
4 changes: 2 additions & 2 deletions packages/scripts.nix
Original file line number Diff line number Diff line change
Expand Up @@ -200,12 +200,12 @@ with pkgs;
trap 'rm -rf $tmpdir' EXIT
echo "ghcr.io/edgelesssys/contrast/coordinator:latest=$imageRef" > "$tmpdir/image-replacements.txt"
resourcegen --image-replacements "$tmpdir/image-replacements.txt" coordinator-release > "$tmpdir/coordinator_base.yml"
resourcegen --image-replacements "$tmpdir/image-replacements.txt" --add-load-balancers coordinator-release > "$tmpdir/coordinator_base.yml"
pushd "$tmpdir" >/dev/null
cp ${genpolicy-msft.rules-coordinator}/genpolicy-rules.rego rules.rego
cp ${genpolicy-msft.settings}/genpolicy-settings.json .
genpolicy < "$tmpdir/coordinator.yml"
genpolicy < "$tmpdir/coordinator_base.yml"
popd >/dev/null
'';
};
Expand Down

0 comments on commit 0bdb16d

Please sign in to comment.