Last active
June 21, 2021 00:44
-
-
Save gnschenker/529ff0770493356d51b3e89ee109612d to your computer and use it in GitHub Desktop.
The builder script
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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