Skip to content

Instantly share code, notes, and snippets.

@baakeydow
Created May 18, 2021 13:13
Show Gist options
  • Save baakeydow/3485a67bb7fb7da7b3c453edd093d3b2 to your computer and use it in GitHub Desktop.
Save baakeydow/3485a67bb7fb7da7b3c453edd093d3b2 to your computer and use it in GitHub Desktop.
Publish your docker image tag the easy way
#!/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