Skip to content

Instantly share code, notes, and snippets.

@adamdriscoll
Created September 25, 2019 20:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save adamdriscoll/18c218a2e87fdb627f5f2515230c7fcd to your computer and use it in GitHub Desktop.
Save adamdriscoll/18c218a2e87fdb627f5f2515230c7fcd to your computer and use it in GitHub Desktop.
Push an image to Docker Hub
param($TagName = '1.0.2')
docker tag myImage adamdriscoll/myImage:$TagName
docker login -u adamdriscoll -p $Env:dockerpwd
docker push adamdriscoll/myImage:$TagName
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment