diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..f98f1eb --- /dev/null +++ b/.drone.yml @@ -0,0 +1,22 @@ +kind: pipeline +name: default + +steps: + - name: build + image: mcr.microsoft.com/dotnet/sdk:8.0 + commands: + - dotnet restore StreamCinema.sln + - dotnet publish -c Release -o out + + - name: docker + image: plugins/docker + settings: + registry: https://git.ivasoft.cz + username: + from_secret: repo_user + password: + from_secret: repo_pass + repo: git.ivasoft.cz/sw/stream-cinema + tags: + - latest + - ${DRONE_TAG:-latest} \ No newline at end of file diff --git a/.gitignore b/.gitignore index 2e9693e..8977c10 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ obj -bin \ No newline at end of file +bin +out \ No newline at end of file diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..ec14efd --- /dev/null +++ b/Dockerfile @@ -0,0 +1,4 @@ +FROM mcr.microsoft.com/dotnet/aspnet:8.0 +COPY ./out/ /App/ +WORKDIR /App +ENTRYPOINT ["dotnet", "StreamCinemaWeb.dll"] \ No newline at end of file