Skip to content

Instantly share code, notes, and snippets.

@changhuixu
Last active October 16, 2020 03:19
Show Gist options
  • Save changhuixu/5933bcf23c45e1d862d32842077c6222 to your computer and use it in GitHub Desktop.
Save changhuixu/5933bcf23c45e1d862d32842077c6222 to your computer and use it in GitHub Desktop.
name: CI
on:
push:
branches:
- master
- release/*
jobs:
build_icolors:
runs-on: ubuntu-16.04
steps:
- uses: actions/checkout@v1
- name: Build and deploy the Docker image
env:
HEROKU_API_KEY: ${{ secrets.HEROKU_API_KEY }}
APP_NAME: ${{ 'icolors' }}
run: |
cd ./ASPNetCoreLabs/HerokuContainer
docker login --username=_ --password=$HEROKU_API_KEY registry.heroku.com
heroku container:push web -a $APP_NAME
heroku container:release web -a $APP_NAME
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment