Created
May 18, 2021 13:13
-
-
Save baakeydow/3485a67bb7fb7da7b3c453edd093d3b2 to your computer and use it in GitHub Desktop.
Publish your docker image tag the easy way
This file contains hidden or 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
#!/usr/bin/env bash | |
docker build -t app_x . && \ | |
docker tag app_x:latest user_x/app_x:latest && \ | |
docker push user_x/app_x:latest && \ | |
echo 'new image successfully published to user_x as app_x!' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment