x
This commit is contained in:
parent
c7a7fe517b
commit
e5127dd413
3 changed files with 10 additions and 11 deletions
12
.github/workflows/build.yml
vendored
12
.github/workflows/build.yml
vendored
|
@ -13,9 +13,9 @@ jobs:
|
||||||
VERSIONSTRING: ${{ steps.make_version_string.outputs.versionstring }}
|
VERSIONSTRING: ${{ steps.make_version_string.outputs.versionstring }}
|
||||||
with:
|
with:
|
||||||
path: Constants.cs
|
path: Constants.cs
|
||||||
# - name: Publish to Registry
|
- name: Publish to Registry
|
||||||
# uses: elgohr/Publish-Docker-Github-Action@master
|
uses: elgohr/Publish-Docker-Github-Action@master
|
||||||
# with:
|
with:
|
||||||
# name: sandersaares/test123
|
name: sandersaares/test123
|
||||||
# username: sandersaares
|
username: sandersaares
|
||||||
# password: ${{ secrets.docker_hub_token }}
|
password: ${{ secrets.docker_hub_token }}
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<OutputType>Exe</OutputType>
|
<OutputType>Exe</OutputType>
|
||||||
<TargetFramework>netcoreapp3.1</TargetFramework>
|
<TargetFramework>netcoreapp3.1</TargetFramework>
|
||||||
<AssemblyName>DockerExporter</AssemblyName>
|
<AssemblyName>docker_exporter</AssemblyName>
|
||||||
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
|
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
|
||||||
<LangVersion>preview</LangVersion>
|
<LangVersion>preview</LangVersion>
|
||||||
<Nullable>enable</Nullable>
|
<Nullable>enable</Nullable>
|
||||||
|
|
|
@ -3,16 +3,15 @@ WORKDIR /app
|
||||||
|
|
||||||
# Separate layers here to avoid redoing dependencies on code change.
|
# Separate layers here to avoid redoing dependencies on code change.
|
||||||
COPY *.sln .
|
COPY *.sln .
|
||||||
COPY DockerExporter/*.csproj ./DockerExporter/
|
COPY *.csproj .
|
||||||
RUN dotnet restore
|
RUN dotnet restore
|
||||||
|
|
||||||
# Now the code.
|
# Now the code.
|
||||||
COPY DockerExporter/. ./DockerExporter/
|
COPY . .
|
||||||
WORKDIR /app/DockerExporter
|
|
||||||
RUN dotnet publish -c Release -o out
|
RUN dotnet publish -c Release -o out
|
||||||
|
|
||||||
FROM mcr.microsoft.com/dotnet/core/aspnet:3.1 AS runtime
|
FROM mcr.microsoft.com/dotnet/core/aspnet:3.1 AS runtime
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
COPY --from=build /app/DockerExporter/out ./
|
COPY --from=build /app/out .
|
||||||
|
|
||||||
ENTRYPOINT ["dotnet", "DockerExporter.dll"]
|
ENTRYPOINT ["dotnet", "DockerExporter.dll"]
|
Loading…
Add table
Reference in a new issue