Empire/.build.sh

12 lines
359 B
Bash
Raw Normal View History

2017-12-03 22:11:43 +00:00
#!/usr/bin/env bash
set -ex
# SET THE FOLLOWING VARIABLES
# docker hub username
USERNAME=empireproject
# image name
IMAGE=empire
2017-12-20 04:03:16 +00:00
# version
VERSION="$(curl -s https://raw.githubusercontent.com/EmpireProject/Empire/master/lib/common/empire.py | grep "VERSION =" | cut -d '"' -f2)"
docker build --build-arg empireversion="$VERSION" -t $USERNAME/$IMAGE:latest .