Created
February 8, 2019 05:34
-
-
Save Ibro/0c372306e6e21b440b176f21e17f0ac1 to your computer and use it in GitHub Desktop.
ASP.NET Core and Heroku - CircleCI config - https://codingblast.com/hosting-asp-net-core-on-heroku-with-dockercircleci-for-free/
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: 2 | |
jobs: | |
build: | |
machine: true | |
steps: | |
- checkout | |
# build image | |
- run: | | |
docker info | |
docker build -t aspnetapp -f Dockerfile . | |
# deploy the image | |
- run: | | |
docker login --username=$HEROKU_USERNAME --password=$HEROKU_API_KEY registry.heroku.com | |
docker tag aspnetapp registry.heroku.com/$HEROKU_APP_NAME/web | |
docker push registry.heroku.com/$HEROKU_APP_NAME/web | |
curl https://cli-assets.heroku.com/install.sh | sh | |
heroku container:release web -a $HEROKU_APP_NAME |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment