-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (41 loc) · 1.44 KB
/
deploy.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# Deploy Dotnet to Heroku.
name: Deploy to heroku.
# Run workflow on every push to master branch
on:
push:
branches: [deploy]
# Your workflows jobs.
jobs:
build:
runs-on: ubuntu-latest
steps:
# Check-out your repository.
- name: Checkout
uses: actions/checkout@v2
- name: Setup .NET Core
uses: actions/setup-dotnet@v1
with:
dotnet-version: 6.0.x
- name: Set Env Vars
uses: microsoft/variable-substitution@v1
with:
files: 'rcmfadmin/appsettings.json'
env:
CONNECTION_STRING: ${{ secrets.CONNECTION_STRING }}
AUTH0_DOMAIN: ${{ secrets.AUTH0_DOMAIN }}
AUTH0_AUDIENCE: ${{ secrets.AUTH0_AUDIENCE }}
# dotnet build and publish
- name: dotnet publish
run: |
dotnet publish ./rcmfadmin -c Release
- name: Build, Push and Release a Docker container to Heroku.
uses: gonuit/[email protected]
with:
# The email address associated with your Heroku account.
email: ${{ secrets.HEROKU_EMAIL }}
# Heroku API key associated with provided user's email.
# Api Key is available under your Heroku account settings.
heroku_api_key: ${{ secrets.HEROKU_API_KEY }}
# Name of the heroku application to which the build is to be sent.
heroku_app_name: ${{ secrets.HEROKU_APP_NAME }}
dockerfile_directory: ./rcmfadmin