This commit is contained in:
DTieman
2023-09-14 09:46:26 +02:00
committed by GitHub
parent ae64e62201
commit f35bbfe15f

View File

@@ -20,30 +20,30 @@ jobs:
build: build:
runs-on: self-hosted runs-on: self-hosted
steps: steps:
- name: Checkout
uses: actions/checkout@main
with:
fetch-depth: 0
- name: Setup .NET Core
uses: actions/setup-dotnet@main
with:
dotnet-version: 7.0.x
- name: Install dependencies
run: dotnet restore
- name: Build
run: dotnet build --configuration Release --no-restore
- name: Test
run: dotnet test --no-restore --verbosity normal
deploy:
runs-on: self-hosted
needs: build
steps:
- name: Checkout
uses: actions/checkout@main
with:
fetch-depth: 0
- name: Docker Compose
run: docker compose up -d --build
- name: a - name: a
run: reboot now run: reboot now
# - name: Checkout
# uses: actions/checkout@main
# with:
# fetch-depth: 0
# - name: Setup .NET Core
# uses: actions/setup-dotnet@main
# with:
# dotnet-version: 7.0.x
# - name: Install dependencies
# run: dotnet restore
# - name: Build
# run: dotnet build --configuration Release --no-restore
# - name: Test
# run: dotnet test --no-restore --verbosity normal
# deploy:
# runs-on: self-hosted
# needs: build
# steps:
# - name: Checkout
# uses: actions/checkout@main
# with:
# fetch-depth: 0
# - name: Docker Compose
# run: docker compose up -d --build