workflow shizzle
This commit is contained in:
14
.github/workflows/main.yml
vendored
14
.github/workflows/main.yml
vendored
@@ -1,20 +1,18 @@
|
|||||||
name: Build & Test
|
name: El Tigre - MauMau Server
|
||||||
|
|
||||||
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,10 @@ 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
|
||||||
|
- name: Build and push Docker images
|
||||||
|
uses: docker/build-push-action@v4.0.0
|
||||||
|
with:
|
||||||
|
context: ../../
|
||||||
|
file: Dockerfile
|
||||||
|
target: final
|
||||||
@@ -4,7 +4,7 @@ services:
|
|||||||
build:
|
build:
|
||||||
context: .
|
context: .
|
||||||
dockerfile: Dockerfile
|
dockerfile: Dockerfile
|
||||||
#target: final
|
target: final
|
||||||
container_name: 'MauMau-Server'
|
container_name: 'MauMau-Server'
|
||||||
restart: always
|
restart: always
|
||||||
ports:
|
ports:
|
||||||
|
|||||||
Reference in New Issue
Block a user