Skip to content

Commit

Permalink
ci: add lima dependency hash check
Browse files Browse the repository at this point in the history
Signed-off-by: Austin Vazquez <[email protected]>
  • Loading branch information
austinvazquez committed Jun 5, 2024
1 parent c8d08e8 commit 6ac74d6
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,13 @@ lima-and-qemu: networks.yaml
mkdir -p $(OUTDIR)/downloads
# download artifacts
curl -L $(LIMA_URL) > $(OUTDIR)/downloads/lima-and-qemu.tar.gz
curl -L $(LIMA_URL).sha512sum > $(OUTDIR)/downloads/lima-and-qemu.tar.gz.sha512sum

# validate shasum for lima artifact
(shasum --algorithm 512 $(OUTDIR)/downloads/lima-and-qemu.tar.gz | \
cut -d ' ' -f 1 | \
grep -xq "^$$(cat $(OUTDIR)/downloads/lima-and-qemu.tar.gz.sha512sum)$$") || \
(echo "error: shasum verification failed for lima dependency" && exit 1)

# Untar LIMA
tar -xvf $(OUTDIR)/downloads/lima-and-qemu.tar.gz -C $(OUTDIR)/lima/
Expand Down

0 comments on commit 6ac74d6

Please sign in to comment.