Skip to content
Permalink
ab7c5072d6
Switch branches/tags

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?
Go to file
 
 
Cannot retrieve contributors at this time
executable file 15 lines (10 sloc) 351 Bytes
#!/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`"