add Gitea Actions Workflow for both dotnet build and docker
This commit is contained in:
parent
6f38269436
commit
ad9c710fee
20
.gitea/workflows/build.yml
Normal file
20
.gitea/workflows/build.yml
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
name: Build
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
pull_request:
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
name: dotnet build
|
||||||
|
runs-on: ubuntu-22.04
|
||||||
|
container:
|
||||||
|
image: mcr.microsoft.com/dotnet/sdk:7.0
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
|
||||||
|
- name: Restore dependencies
|
||||||
|
run: dotnet restore src/DiIiS-NA/Blizzless.csproj
|
||||||
|
|
||||||
|
- name: Build (Release)
|
||||||
|
run: dotnet build src/DiIiS-NA/Blizzless.csproj -c Release --no-restore
|
||||||
18
.gitea/workflows/docker.yml
Normal file
18
.gitea/workflows/docker.yml
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
name: Docker Build
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
- test-stable
|
||||||
|
- wsl-docker
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
docker:
|
||||||
|
name: docker build
|
||||||
|
runs-on: ubuntu-22.04
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
|
||||||
|
- name: Build Docker image
|
||||||
|
run: docker build -t blizzless-diiis:${{ gitea.sha }} .
|
||||||
Loading…
Reference in New Issue
user.block.title