add: CI
This commit is contained in:
14
.gitea/workflows/build.yaml
Normal file
14
.gitea/workflows/build.yaml
Normal file
@@ -0,0 +1,14 @@
|
||||
name: Build Frontend Docker Image
|
||||
on: [push]
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Check out repository code
|
||||
uses: https://git.rrricardo.top/actions/checkout@v3
|
||||
|
||||
- run: dotnet publish ./Frontend/Frontend.csproj -c Release -o publish
|
||||
|
||||
- run: cp ./Frontend/Dockerfile .
|
||||
|
||||
- run: docker build . -t git.rrricardo.top/jackfiled/frontend:latest
|
4
.idea/.idea.Katheryne/.idea/indexLayout.xml
generated
4
.idea/.idea.Katheryne/.idea/indexLayout.xml
generated
@@ -1,7 +1,9 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="UserContentModel">
|
||||
<attachedFolders />
|
||||
<attachedFolders>
|
||||
<Path>.gitea</Path>
|
||||
</attachedFolders>
|
||||
<explicitIncludes />
|
||||
<explicitExcludes />
|
||||
</component>
|
||||
|
4
Frontend/Dockerfile
Normal file
4
Frontend/Dockerfile
Normal file
@@ -0,0 +1,4 @@
|
||||
FROM mcr.microsoft.com/dotnet/aspnet:7.0
|
||||
WORKDIR /app
|
||||
COPY ./publish/ .
|
||||
ENTRYPOINT ["dotnet", "Frontend.dll"]
|
Reference in New Issue
Block a user