From 0e4f7da9fe767180dbd8ce8233c57688b75b1c9a Mon Sep 17 00:00:00 2001 From: Joshua Watt Date: Fri, 22 Feb 2019 09:29:07 -0600 Subject: [PATCH] Report file checksums Reports the deliverables checksums so that they can be used to validate when pulling them into an image --- .gitignore | 1 + .travis.yml | 3 +++ build.sh | 10 ++++++++++ 3 files changed, 14 insertions(+) diff --git a/.gitignore b/.gitignore index 950b66c..91051d8 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ *.bak *~ build/ +checksums/ diff --git a/.travis.yml b/.travis.yml index e66c80e..4443255 100644 --- a/.travis.yml +++ b/.travis.yml @@ -8,8 +8,11 @@ deploy: secure: laa6a0xRcXyK1P4VmQK7BmuV3eNuFoiCEW7e58CBtWQp+Wz8VWeBPAyUKVe6RZEu7Y5ouo6NhBAvOBRtY+bOrLAZXTStJ/B7QKYnIFd+GkUdf7JEGY+CExhWgaIS/qIWJ2wVAZ8EPOXbpx766YyloJQTf53Ct3aSfq0naximkNYDXCwYL3UdzMC2MOWjGo2s/aunQeGigwUFgfmEuCaBa6+2DitDzkVp7zvvzz2phYqHsGyM5FZAkoZ3/+8Zmk/3hMCsbX4eZ3gtxYmAsy2bZtdCvhinaATDr9tWw4BO8PZ+anqqQE4bJZsupfkaJ/EVE4G/vUVevn5dfEuayFcAzRVJuLHaYFGXINZ+fcT6cOaeX4+qNoz8Af4jSf5Nzt0eHfDOLVQqgaI3+VxFFf4TD3gb6IO0a3WJpfpJIAhnHjGlzG5kwyKg9dVDLHeMLuT6sJqHXCGGTUPRNgc6jECEFwKtZogzHPExl/Xk/ZrXfwHahpCzarSXVGkPL54PJaegjuBktDTOGoN13d/dv+3XvmuGkJ4rPcIzdWE0JruxxKS09WYs/J6rNviSgFf/dEDoHlq1273YS85H4GnhFCQ4CBC33qydrtB9EoMLvRZ4e94zt0locnlY2jika35kS1rt/BPT6dm3cIjHD+1M8kLKxG0APDYTaNZ66W+A0RAOw24= file: - build/setpriv + - checksums/setpriv.sha256 - build/tini + - checksums/tini.sha256 - build/icecream.tar.gz + - checksums/icecream.tar.gz.sha256 skip_cleanup: true on: tags: true diff --git a/build.sh b/build.sh index c7da12b..1927fc4 100755 --- a/build.sh +++ b/build.sh @@ -32,3 +32,13 @@ docker run -it --rm --init \ garmin/pyrex-util:latest \ /pyrex/scripts/build_$TARGET.sh +rm -rf $THIS_DIR/checksums +mkdir -p $THIS_DIR/checksums + +( + cd $THIS_DIR/build + for f in *; do + sha256sum $f | cut -f1 -d' ' > $THIS_DIR/checksums/$f.sha256 + done +) +