Skip to content

Commit

Permalink
update hashsum and github action scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
palainp committed Jun 10, 2024
1 parent d34cb78 commit 2bfa30a
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:

- run: ./build-with.sh docker

- run: sh -exc 'diff <(sha256sum ./dist/qubes-miragevpn.xen) qubes-miragevpn.sha256 && echo "SHA256 MATCHES" || exit 42'
- run: sh -exc 'if [ "$(sha256sum ./dist/qubes-miragevpn.xen)" = "$(cat ./qubes-miragevpn.sha256)" ]; then echo "SHA256 MATCHES"; else exit 42; fi'

- name: Upload Artifact
uses: actions/upload-artifact@v3
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/podman.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:

- run: ./build-with.sh podman

- run: sh -exc 'diff <(sha256sum ./dist/qubes-miragevpn.xen) qubes-miragevpn.sha256 && echo "SHA256 MATCHES" || exit 42'
- run: sh -exc 'if [ "$(sha256sum ./dist/qubes-miragevpn.xen)" = "$(cat ./qubes-miragevpn.sha256)" ]; then echo "SHA256 MATCHES"; else exit 42; fi'

- name: Upload Artifact
uses: actions/upload-artifact@v3
Expand Down
2 changes: 1 addition & 1 deletion build-with.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/sh
set -eu

if [[ $# -ne 1 ]] ; then
if [ $# -ne 1 ] ; then
echo "Usage: build-with.sh { docker | podman }"
exit 1
fi
Expand Down
2 changes: 1 addition & 1 deletion qubes-miragevpn.sha256
Original file line number Diff line number Diff line change
@@ -1 +1 @@
ca8791d985a8d85e85e3d44b091edfa19c3f80649632b50b912d61f2d71a33d3 ./dist/qubes-miragevpn.xen
c38251c9c0e72e891b0bffeba3ab4a14244360df3eaea4b87af778e299f1d2b7 ./dist/qubes-miragevpn.xen

0 comments on commit 2bfa30a

Please sign in to comment.