aboutsummaryrefslogtreecommitdiff
path: root/hooks/pre_build
diff options
context:
space:
mode:
Diffstat (limited to 'hooks/pre_build')
-rwxr-xr-xhooks/pre_build28
1 files changed, 0 insertions, 28 deletions
diff --git a/hooks/pre_build b/hooks/pre_build
deleted file mode 100755
index 9829bb5d..00000000
--- a/hooks/pre_build
+++ /dev/null
@@ -1,28 +0,0 @@
-#!/usr/bin/env bash
-
-set -ex
-
-# If requested, print some environment info for troubleshooting.
-if [[ -n "${DOCKER_HUB_DEBUG}" ]]; then
- id
- pwd
- df -h
- env
- docker info
- docker version
-fi
-
-# Install build dependencies.
-deps=(
- jq
-)
-apt-get update
-apt-get install -y "${deps[@]}"
-
-# Docker Hub uses a shallow clone and doesn't fetch tags, which breaks some
-# Git operations that we perform later, so fetch the complete history and
-# tags first. Note that if the build is cached, the clone may have been
-# unshallowed already; if so, unshallowing will fail, so skip it.
-if [[ -f .git/shallow ]]; then
- git fetch --unshallow --tags
-fi