This commit is contained in:
1 parent
e146eed3b2
commit
291d0c3f07
1 file changed
+39
@@ -0,0 +1,39 @@
|
|||||||
|
name: Build and publish mistserver
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
runs-on: alpine-linux
|
||||||
|
steps:
|
||||||
|
- name: checkout
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: build and push database
|
||||||
|
run: |
|
||||||
|
docker buildx build \
|
||||||
|
--platform=linux/amd64,linux/arm64 \
|
||||||
|
-t docker.mistox.net/eventoscaudillos-sql \
|
||||||
|
--push \
|
||||||
|
./database
|
||||||
|
|
||||||
|
- name: Setup .NET SDK
|
||||||
|
uses: actions/setup-dotnet@v4
|
||||||
|
with:
|
||||||
|
dotnet-version: '10.0.x'
|
||||||
|
cache: true
|
||||||
|
|
||||||
|
- name: Restore Dependencies
|
||||||
|
run: dotnet restore
|
||||||
|
|
||||||
|
- name: Dotnet Publish
|
||||||
|
run: dotnet publish --configuration Release --output ./publish --no-restore
|
||||||
|
|
||||||
|
- name: Upload Artifact
|
||||||
|
uses: actions/upload-artifact@v4
|
||||||
|
with:
|
||||||
|
name: dotnet-app-release
|
||||||
|
path: ./publish
|
||||||
Reference in new issue
Block a user