Created
April 13, 2021 15:17
-
-
Save tmuguet/8c345c9bda6fbc2517465f6b07164c63 to your computer and use it in GitHub Desktop.
Deploy an existing Docker image to Heroku
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
#!/bin/bash | |
# Requires docker CLI and heroku CLI | |
# Specify here the docker image you want to deploy from Docker registry | |
docker_image=damoeb/rss-proxy | |
# Specify here the name of your Heroku app | |
heroku_app=my-heroku-app | |
docker pull $docker_image | |
id=`docker images | grep $docker_image | awk '{print $3}'` | |
docker tag $id registry.heroku.com/$heroku_app/web | |
docker push registry.heroku.com/$heroku_app/web | |
heroku container:release web --app=$heroku_app |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment