Build docker image
Some checks failed
continuous-integration/drone Build is failing

This commit is contained in:
2024-11-10 23:12:30 +01:00
parent e90ceea9c6
commit caefd2f255
3 changed files with 28 additions and 1 deletions

22
.drone.yml Normal file
View File

@@ -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}

3
.gitignore vendored
View File

@@ -1,2 +1,3 @@
obj obj
bin bin
out

4
Dockerfile Normal file
View File

@@ -0,0 +1,4 @@
FROM mcr.microsoft.com/dotnet/aspnet:8.0
COPY ./out/ /App/
WORKDIR /App
ENTRYPOINT ["dotnet", "StreamCinemaWeb.dll"]