Files
MauMau-Server/.github/workflows/main.yml
Jordan Geurtsen 974d687d2d workflow shizzle
2023-03-23 21:21:28 +01:00

46 lines
1.0 KiB
YAML

name: El Tigre - MauMau Server
on:
push:
branches:
- mauster
pull_request:
branches:
- mauster
workflow_dispatch:
concurrency:
group: mau
cancel-in-progress: true
env:
DOTNET_INSTALL_DIR: "./.dotnet"
jobs:
build:
runs-on: self-hosted
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
- name: Docker Setup QEMU
uses: docker/setup-qemu-action@v2.1.0
- name: Docker Setup Buildx
uses: docker/setup-buildx-action@v2.5.0
- name: Build and push Docker images
uses: docker/build-push-action@v4.0.0
with:
context: ../../
file: Dockerfile
target: final