Skip to content

Instantly share code, notes, and snippets.

@DarthSim
Created September 23, 2022 14:52
Show Gist options
  • Select an option

  • Save DarthSim/780f2b17310e45b7af446782eec4f3d4 to your computer and use it in GitHub Desktop.

Select an option

Save DarthSim/780f2b17310e45b7af446782eec4f3d4 to your computer and use it in GitHub Desktop.

Revisions

  1. DarthSim created this gist Sep 23, 2022.
    15 changes: 15 additions & 0 deletions deploy-imgproxy-to-heroku.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,15 @@
    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