Skip to content

Instantly share code, notes, and snippets.

@DarthSim
Created September 23, 2022 14:52
Show Gist options
  • Save DarthSim/780f2b17310e45b7af446782eec4f3d4 to your computer and use it in GitHub Desktop.
Save DarthSim/780f2b17310e45b7af446782eec4f3d4 to your computer and use it in GitHub Desktop.
HEROKU_APPLICATION="your_application_name"
IMGPROXY_TAG="v3.7.2"
# You'll probably have to do this just once
heroku login
heroku container:login
# Make sure you use "-amd64" prefix. Otherwise you may accidentally deploy
# arm64 build of imgproxy which won't run on Heroku
docker pull us-docker.pkg.dev/imgproxy-pro/v3/imgproxy:$IMGPROXY_TAG-amd64
docker tag us-docker.pkg.dev/imgproxy-pro/v3/imgproxy:$IMGPROXY_TAG-amd64 registry.heroku.com/$HEROKU_APPLICATION/web:latest
docker push registry.heroku.com/$HEROKU_APPLICATION/web:latest
heroku container:release web -a $HEROKU_APPLICATION
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment