chore: init commit from GitHub
This commit is contained in:
19
.github/workflows/docker-deploy.yml
vendored
Normal file
19
.github/workflows/docker-deploy.yml
vendored
Normal file
@@ -0,0 +1,19 @@
|
||||
name: Deploy
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ "main" ]
|
||||
jobs:
|
||||
update:
|
||||
runs-on: self-hosted
|
||||
steps:
|
||||
- name: Update Git Repository
|
||||
working-directory: /home/swapdude/MainStack
|
||||
run: |
|
||||
pwd
|
||||
git fetch --all
|
||||
git reset --hard origin/main
|
||||
- name: Build & Deploy on docker-compose
|
||||
working-directory: /home/swapdude/MainStack
|
||||
run: |
|
||||
docker compose up -d --build
|
||||
26
.github/workflows/dotnet.yml
vendored
Normal file
26
.github/workflows/dotnet.yml
vendored
Normal file
@@ -0,0 +1,26 @@
|
||||
# This workflow will build a .NET project
|
||||
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-net
|
||||
|
||||
name: Build Project .NET
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ "main" ]
|
||||
pull_request:
|
||||
branches: [ "main" ]
|
||||
|
||||
jobs:
|
||||
build:
|
||||
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- name: Setup .NET
|
||||
uses: actions/setup-dotnet@v3
|
||||
with:
|
||||
dotnet-version: 6.0.x
|
||||
- name: Restore dependencies
|
||||
run: dotnet restore
|
||||
- name: Build
|
||||
run: dotnet build --no-restore
|
||||
Reference in New Issue
Block a user