Skip to content

Instantly share code, notes, and snippets.

@gnschenker
Last active June 21, 2021 00:44
Show Gist options
  • Save gnschenker/529ff0770493356d51b3e89ee109612d to your computer and use it in GitHub Desktop.
Save gnschenker/529ff0770493356d51b3e89ee109612d to your computer and use it in GitHub Desktop.
The builder script
# build artifact
docker build -t $IMAGE /app
# test artifact
if [ -e /app/test/sh ]; then
/app/test.sh
fi
# tag artifact
docker tag $IMAGE $ACCOUNT/$IMAGE:$TAG
docker tag $IMAGE $ACCOUNT/$IMAGE:latest
# push artifact
docker push $ACCOUNT/$IMAGE:$TAG
docker push $ACCOUNT/$IMAGE:latest
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment