2016-06-16 19:34:25 +00:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
|
|
set -e
|
|
|
|
|
|
|
|
# Docker:
|
|
|
|
if [[ ! -z "$DOCKER_DIST" ]]; then
|
|
|
|
TEMPLATE="sobolevn/git-secret-docker-$DOCKER_DIST"
|
|
|
|
DOCKERFILE_PATH=".docker/${GITSECRET_DIST}/${DOCKER_DIST}"
|
|
|
|
|
|
|
|
# Building the local image:
|
|
|
|
docker build -t "$TEMPLATE" "$DOCKERFILE_PATH"
|
|
|
|
fi
|
|
|
|
|
|
|
|
# Mac:
|
|
|
|
if [[ "$GITSECRET_DIST" == "brew" ]]; then
|
2016-06-30 19:32:42 +00:00
|
|
|
brew install "$GITSECRET_GPG_DEP"
|
2016-06-16 19:34:25 +00:00
|
|
|
fi
|
|
|
|
|
|
|
|
# Local linux (standart build):
|
2016-07-02 13:18:53 +00:00
|
|
|
if [[ "$GITSECRET_DIST" == "none" ]] && [[ "$GITSECRET_GPG_DEP" == "gnupg2" ]]; then
|
|
|
|
# Installing custom GPG version:
|
|
|
|
sudo apt-get install -y gnupg2
|
2016-06-16 19:34:25 +00:00
|
|
|
fi
|