docker-artifact/example/example.sh

17 lines
389 B
Bash
Executable File

#!/usr/bin/env bash
set -e
source=$(dirname "${BASH_SOURCE[0]}")
pushd "$source" &> /dev/null
# Build example image
echo "Rebuilding docker image for example"
docker build . -t infogulch/test-image &> /dev/null
# Execute docker artifact to add a label to /app/othertestfile.txt
set +e
../docker-artifact.sh artifact label infogulch/test-image /app/othertestfile.txt
popd &> /dev/null