-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: use release binary in release process
- Loading branch information
Showing
1 changed file
with
17 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -171,9 +171,23 @@ jobs: | |
run: | | ||
nix run .#push-coordinator -- "$container_registry/nunki/coordinator" | ||
nix run .#push-initializer -- "$container_registry/nunki/initializer" | ||
- name: Create portable coordinator resource definitions | ||
run: | | ||
mkdir -p workspace | ||
nix run .#write-coordinator-yaml -- "${container_registry}/nunki/coordinator" > workspace/coordinator.yaml | ||
- name: Update coordinator policy hash | ||
run: | | ||
yq < workspace/coordinator.yaml \ | ||
'select(.kind == "Deployment") | .spec.template.metadata.annotations["io.katacontainers.config.agent.policy"]' | | ||
sha256sum | cut -d' ' -f1 > cli/assets/coordinator-policy-hash | ||
git config --global user.name "edgelessci" | ||
git config --global user.email "[email protected]" | ||
git add cli/assets/coordinator-policy-hash | ||
git diff --staged --quiet || git commit -m "release: update coordinator policy hash" | ||
- name: Build CLI | ||
run: | | ||
nix build .#cli | ||
nix build .#cli-release | ||
- name: Create draft release | ||
uses: softprops/action-gh-release@de2c0eb89ae2a093876385947365aca7b0e5f844 # v0.1.15 | ||
with: | ||
|
@@ -182,7 +196,8 @@ jobs: | |
tag_name: ${{ inputs.version }} | ||
target_commitish: ${{ needs.process-inputs.outputs.WORKING_BRANCH }} | ||
files: | | ||
result-cli/bin/nunki | ||
result/bin/nunki | ||
workspace/coordinator.yaml | ||
- name: Reset temporary changes | ||
run: | | ||
git reset --hard ${{ needs.process-inputs.outputs.WORKING_BRANCH }} | ||
|