mirror of
https://github.com/sobolevn/git-secret
synced 2024-11-08 19:10:31 +00:00
31 lines
656 B
Bash
Executable File
31 lines
656 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
set -e
|
|
|
|
case ${1#linux/} in
|
|
386)
|
|
TINI_PLATFORM=i386
|
|
;;
|
|
arm/v7)
|
|
TINI_PLATFORM=armhf
|
|
;;
|
|
arm/v6)
|
|
TINI_PLATFORM=armel
|
|
;;
|
|
*)
|
|
TINI_PLATFORM=${1#linux/}
|
|
;;
|
|
esac
|
|
|
|
echo "Installing tini for $TINI_PLATFORM"
|
|
|
|
wget "https://github.com/krallin/tini/releases/download/${TINI_VERSION}/tini-static-${TINI_PLATFORM}" -O /tini
|
|
wget "https://github.com/krallin/tini/releases/download/${TINI_VERSION}/tini-static-${TINI_PLATFORM}.asc" -O /tini.asc
|
|
|
|
chmod +x /tini
|
|
|
|
apk add gnupg
|
|
gpg --import < /tmp/docker/tini.pubkey.gpg
|
|
gpg --batch --verify /tini.asc /tini
|
|
apk del gnupg
|