-
Notifications
You must be signed in to change notification settings - Fork 50
41 lines (38 loc) · 1.26 KB
/
dotnet-core.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
name: .NET Core
on:
push:
branches: [master]
pull_request:
branches: [master]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup .NET Core
uses: actions/setup-dotnet@v1
with:
dotnet-version: 3.1.302
- name: Install dependencies
run: dotnet restore src/Destiny.Core.Flow.API
- name: publish
run: dotnet publish src/Destiny.Core.Flow.API --configuration Release --no-restore -o app
- name: build image
uses: docker/build-push-action@v1
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
repository: 18790997531/destinycore
tags: latest
path: /home/runner/work/Destiny.Core.Flow/Destiny.Core.Flow/app
dockerfile: /home/runner/work/Destiny.Core.Flow/Destiny.Core.Flow/app/Dockerfile
- name: deploy to portainer
uses: LGinC/portainer-stack-deploy@master
with:
serverurl: https://portainer.destinycore.club
username: ${{ secrets.PORTAINER_USERNAME }}
password: ${{ secrets.PORTAINER_PASSWORD }}
stackname: destinyapi
imagename: 18790997531/destinycore:latest
# - name: Test
# run: dotnet test --no-restore --verbosity normal