add: CI
This commit is contained in:
parent
46a1639888
commit
3d18aba8a2
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
|
|
@ -1,7 +1,9 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<project version="4">
|
<project version="4">
|
||||||
<component name="UserContentModel">
|
<component name="UserContentModel">
|
||||||
<attachedFolders />
|
<attachedFolders>
|
||||||
|
<Path>.gitea</Path>
|
||||||
|
</attachedFolders>
|
||||||
<explicitIncludes />
|
<explicitIncludes />
|
||||||
<explicitExcludes />
|
<explicitExcludes />
|
||||||
</component>
|
</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"]
|
Loading…
Reference in New Issue
Block a user