2021-04-29 01:49:41 +00:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
2021-05-01 02:43:40 +00:00
|
|
|
pushd "$(dirname "${BASH_SOURCE[0]}")" &> /dev/null
|
2021-04-29 01:49:41 +00:00
|
|
|
|
|
|
|
# Build example image
|
2021-05-01 02:27:37 +00:00
|
|
|
echo "Rebuilding docker image for example"
|
2021-05-01 02:43:40 +00:00
|
|
|
printf 'FROM busybox \n RUN mkdir app && echo "Hello World!" > /app/testfile.txt' | docker build -t infogulch/artifact-test - &> /dev/null
|
2021-04-29 01:49:41 +00:00
|
|
|
|
2021-05-01 02:43:40 +00:00
|
|
|
# Execute docker artifact to add a label that identifies /app/testfile.txt
|
|
|
|
../docker-artifact.sh artifact label infogulch/artifact-test /app/testfile.txt
|
2021-04-29 01:49:41 +00:00
|
|
|
|
|
|
|
popd &> /dev/null
|
|
|
|
|