blob: 3649411dcefd62dc10e694a0328537e224ffe4b6 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
#!/usr/bin/env bash
# build and upload dockerd binaries
# exit if a command fails
set -o errexit
# exit if required variables aren't set
set -o nounset
rev="$(git rev-parse --short HEAD)"
echo "on git revision $rev"
# build the static binaries
make binary
# rename dockerd files
sha256sum bundles/binary-daemon/dockerd | cut -d " " -f 1 > bundles/binary-daemon/dockerd.sha256
md5sum bundles/binary-daemon/dockerd | cut -d " " -f 1 > bundles/binary-daemon/dockerd.md5
# sign dockerd file
gpg --output ./bundles/binary-daemon/dockerd.sig --detach-sig ./bundles/binary-daemon/dockerd
# upload to azure
if command -v rlcone &>/dev/null; then
rclone copy --verbose ./bundles/binary-daemon/ --include="dockerd{,.md5,.sha256,.sig}" galenguyer:moby/"$(git rev-parse --short HEAD)"/
rclone copy --verbose ./bundles/binary-daemon/ --include="dockerd{,.md5,.sha256,.sig}" galenguyer:moby/
fi
|