mirror of
https://github.com/sobolevn/git-secret
synced 2024-11-06 15:20:36 +00:00
8b1a01f1f6
The full list of changes: 1. Added `.docker/` folder with Dockerfiles 2. Now `travis` runs integrational tests inside these containers 3. Now `travis` runs tests with `mac os x` 4. Now there are new ways to autodeploy `deb` and `rpm` packages 5. Fixed some issues 6. Also added `.ci/` folder, where utility scripts for travis are stored 7. Moved `git-hooks` into the separate folder: `utils/hooks/` 8. Added new target to the `Makefile` 9. `.gitignore` is updated to ignore `build/` folder and inner files
25 lines
551 B
Bash
25 lines
551 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
|