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