【发布时间】:2021-01-18 16:37:06
【问题描述】:
我有 .net core 2.1 项目库,它执行数据库迁移(使用 fluentmigrator)。一旦我将代码更改(迁移)推送到 github master 分支,执行这个库的最简单方法是什么?我试图在 yml 文件和 procfile 下定义,但是在 build on release 命令之后出现错误我有一个错误:
/bin/sh: 1: dotnet: 未找到
如何使用 buildpack 构建和运行 .net 核心应用程序。不使用docker可以吗?
name: Deploy to Heroku
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
defaults:
run:
working-directory: ./app.db/
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: akhileshns/heroku-deploy@v3.7.8
with:
heroku_api_key: ${{secrets.HEROKU_API_KEY}}
heroku_app_name: "app-db"
heroku_email: "myemail"
buildpack: "https://github.com/jincod/dotnetcore-buildpack"
appdir: "app.db"
过程文件
release: cd $HOME/heroku_output && dotnet app.db.dll
【问题讨论】:
标签: heroku .net-core github-actions fluent-migrator