Refactor to use functions, fixes #2; set up subcommand dispatch, fixes #3

This commit is contained in:
Joe
2021-04-30 21:27:37 -05:00
parent f818ecc2bc
commit 044f63a10a
2 changed files with 132 additions and 50 deletions

View File

@ -5,11 +5,12 @@ source=$(dirname "${BASH_SOURCE[0]}")
pushd "$source" &> /dev/null
# Build example image
docker build . -t test-image &> /dev/null
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 test-image /app/othertestfile.txt
../docker-artifact.sh artifact label infogulch/test-image /app/othertestfile.txt
popd &> /dev/null