Skip to content
GitHub Action for interacting with Heroku
Branch: master
Clone or download
parkr Merge pull request #4 from actions/codeowners
Add a CODEOWNERS file to streamline review.
Latest commit 466fea5 Feb 12, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github Add a CODEOWNERS file to streamline review. Feb 9, 2019
script Initial commit Oct 16, 2018
test Initial commit Oct 16, 2018
.dockerignore Initial commit Oct 16, 2018
Brewfile Initial commit Oct 16, 2018
Dockerfile Use non-slim node Jan 31, 2019
LICENSE Initial commit Oct 16, 2018
README.md Simplify description sentence in readme Dec 17, 2018
THIRD_PARTY_NOTICE.md Initial commit Oct 16, 2018
entrypoint.sh Initial commit Oct 16, 2018

README.md

GitHub Deployer for Heroku

This Action wraps the Heroku CLI to enable common Heroku commands.

Usage

An example workflow to build a docker container from source and push and release the image to an existing application on Heroku:

workflow "Deploy to Heroku" {
  on = "push"
  resolves = "release"
}

action "login" {
  uses = "actions/heroku@master"
  args = "container:login"
  secrets = ["HEROKU_API_KEY"]
}

action "push" {
  uses = "actions/heroku@master"
  needs = "login"
  args = "container:push -a calm-fortress-1234 web"
  secrets = ["HEROKU_API_KEY"]
}

action "release" {
  uses = "actions/heroku@master"
  needs = "push"
  args = "container:release -a calm-fortress-1234 web"
  secrets = ["HEROKU_API_KEY"]
}

Secrets

  • HEROKU_API_KEY - Required. The token to use for authentication with the Heroku API (more info)

Environment variables

  • HEROKU_APP - Optional. To specify a Heroku application

License

The Dockerfile and associated scripts and documentation in this project are released under the MIT License.

Container images built with this project include third party materials. See THIRD_PARTY_NOTICE.md for details.

You can’t perform that action at this time.