Permalink
Cannot retrieve contributors at this time
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
docker-shib-proxy/ci/build.sh
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
executable file
15 lines (10 sloc)
351 Bytes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
echo "[INFO] $0 started at `date`" | |
# Read the commit hash | |
read -r commit_hash<<<$(git rev-parse --short HEAD) | |
echo "[INFO] Commit hash: \"$commit_hash\"" | |
image_name=shib-proxy | |
# Build the container image | |
echo "[INFO] Building the container image" | |
docker build -t $image_name:$commit_hash . | |
echo "[INFO] $0 finished at `date`" |