Merge remote-tracking branch 'origin/developmaunt' into developmaunt
This commit is contained in:
19
.github/workflows/main.yml
vendored
19
.github/workflows/main.yml
vendored
@@ -1,20 +1,18 @@
|
|||||||
name: Build & Test
|
name: Build Mau & Deploy Mau
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- mauster
|
- mauster
|
||||||
- developmaunt
|
|
||||||
pull_request:
|
pull_request:
|
||||||
branches:
|
branches:
|
||||||
- mauster
|
- mauster
|
||||||
- developmaunt
|
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
concurrency:
|
concurrency:
|
||||||
group: mau
|
group: mau
|
||||||
cancel-in-progress: true
|
cancel-in-progress: true
|
||||||
|
|
||||||
env:
|
env:
|
||||||
DOTNET_INSTALL_DIR: "./.dotnet"
|
DOTNET_INSTALL_DIR: "./.dotnet"
|
||||||
|
|
||||||
@@ -35,4 +33,15 @@ jobs:
|
|||||||
- name: Build
|
- name: Build
|
||||||
run: dotnet build --configuration Release --no-restore
|
run: dotnet build --configuration Release --no-restore
|
||||||
- name: Test
|
- name: Test
|
||||||
run: dotnet test --no-restore --verbosity normal
|
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
|
||||||
|
|
||||||
@@ -1,7 +1,6 @@
|
|||||||
FROM mcr.microsoft.com/dotnet/aspnet:7.0 AS base
|
FROM mcr.microsoft.com/dotnet/aspnet:7.0 AS base
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
EXPOSE 80
|
EXPOSE 5000
|
||||||
EXPOSE 443
|
|
||||||
|
|
||||||
FROM mcr.microsoft.com/dotnet/sdk:7.0 AS build
|
FROM mcr.microsoft.com/dotnet/sdk:7.0 AS build
|
||||||
WORKDIR /src
|
WORKDIR /src
|
||||||
|
|||||||
@@ -4,14 +4,12 @@ services:
|
|||||||
build:
|
build:
|
||||||
context: .
|
context: .
|
||||||
dockerfile: Dockerfile
|
dockerfile: Dockerfile
|
||||||
#target: final
|
|
||||||
container_name: 'MauMau-Server'
|
container_name: 'MauMau-Server'
|
||||||
restart: always
|
restart: always
|
||||||
ports:
|
ports:
|
||||||
- "80:80"
|
- "5000:5000"
|
||||||
networks:
|
networks:
|
||||||
- MauMau
|
- MauMau
|
||||||
networks:
|
networks:
|
||||||
MauMau:
|
MauMau:
|
||||||
# hier later extern naar client
|
|
||||||
driver: bridge
|
driver: bridge
|
||||||
Reference in New Issue
Block a user