parent
9d0b2d4920
commit
3737ac3e93
@ -0,0 +1,24 @@
|
|||||||
|
kind: pipeline
|
||||||
|
type: docker
|
||||||
|
name: AOC2021
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: init
|
||||||
|
image: busybox
|
||||||
|
commands:
|
||||||
|
- echo 'Starting build pipeline for AOC2021'
|
||||||
|
|
||||||
|
- name: build-aoc-2021
|
||||||
|
image: plugins/docker
|
||||||
|
settings:
|
||||||
|
username:
|
||||||
|
from_secret: docker_username
|
||||||
|
password:
|
||||||
|
from_secret: docker_password
|
||||||
|
repo: 97waterpolo/aoc-2021
|
||||||
|
dockerfile: AOC2021/Dockerfile
|
||||||
|
|
||||||
|
- name: finish
|
||||||
|
image: busybox
|
||||||
|
commands:
|
||||||
|
- echo 'Finished deployment for Aincrad'
|
@ -0,0 +1,18 @@
|
|||||||
|
FROM mcr.microsoft.com/dotnet/runtime:5.0 AS base
|
||||||
|
WORKDIR /app
|
||||||
|
|
||||||
|
FROM mcr.microsoft.com/dotnet/sdk:5.0 AS build
|
||||||
|
WORKDIR /src
|
||||||
|
COPY ["AOC2021.csproj", "AOC2021/"]
|
||||||
|
RUN dotnet restore "AOC2021/AOC2021.csproj"
|
||||||
|
COPY [".", "AOC2021/."]
|
||||||
|
WORKDIR "/src/AOC2021"
|
||||||
|
RUN dotnet build "AOC2021.csproj" -c Release -o /app/build
|
||||||
|
|
||||||
|
FROM build AS publish
|
||||||
|
RUN dotnet publish "AOC2021.csproj" -c Release -o /app/publish
|
||||||
|
|
||||||
|
FROM base AS final
|
||||||
|
WORKDIR /app
|
||||||
|
COPY --from=publish /app/publish .
|
||||||
|
ENTRYPOINT ["dotnet", "AOC2021.dll"]
|
Loading…
Reference in new issue