mirror of https://github.com/sobolevn/git-secret
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
550 B
Bash
24 lines
550 B
Bash
#!/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
|
|
brew install "$GITSECRET_GPG_DEP"
|
|
fi
|
|
|
|
# Local linux (standart build):
|
|
if [[ "$GITSECRET_DIST" == "none" ]] && [[ "$GITSECRET_GPG_DEP" == "gnupg2" ]]; then
|
|
# Installing custom GPG version:
|
|
sudo apt-get install -y gnupg2
|
|
fi
|