I would like the ability to add configuration variables to the Heroku Deploy script, which would allow me to do things like update the app version number or dynamically change the environment based on results from an API call.
Something like:
- step:
name: Deploy to production
deployment: production
caches:
- pip
script:
- pipe: atlassian/heroku-deploy:1.2.1
variables:
HEROKU_API_KEY: $HEROKU_API_KEY
HEROKU_APP_NAME: $HEROKU_APP_NAME
ZIP_FILE: app-name.tar.gz
WAIT: "true"
CONFIG:
APP_VERSION: 2.0.$BITBUCKET_BUILD_NUMBER
Edit: To clarify, I mean this would update the Config Vars for this app on Heroku.