I have a bitbucket pipeline that almost working:
image: atlassian/default-image:2
pipelines:
default:
- step:
services:
- docker
script:
#Build the image
- docker build -t $IMAGE_NAME ./backend
#Login to heroku's docker registry with an API token
- docker login --username=_ --password $HEROKU_TOKEN registry.heroku.com
#Tag and push our built image to the heroku docker registry
- docker tag $IMAGE_NAME registry.heroku.com/$HEROKU_APPLICATION_NAME/web
- docker push registry.heroku.com/$HEROKU_APPLICATION_NAME/web
The final step is - I would run something like heroku container:release web -a=$HEROKU_APPLICATION_NAME
How can I do that without actually having the heroku-cli (ie. from the bitbucket pipeline).