Compare commits

..

2 Commits

Author SHA1 Message Date
Chris Plaatjes
1949c7af1b Merge branch 'main' of git.kizaing.ca:kizaing/TeleTok
Some checks reported errors
continuous-integration/drone/push Build encountered an error
continuous-integration/drone Build encountered an error
2023-02-14 15:07:27 -05:00
Chris Plaatjes
993a94ddb1 Updated build task 2023-02-14 15:06:39 -05:00
2 changed files with 8 additions and 9 deletions

View File

@ -3,12 +3,6 @@ kind: pipeline
type: docker type: docker
name: publish-bot name: publish-bot
steps:
- name: build-dotnet
image: mcr.microsoft.com/dotnet/sdk:6.0
commands:
- dotnet publish
- name: build-image - name: build-image
image: plugins/docker image: plugins/docker
settings: settings:
@ -19,8 +13,6 @@ steps:
from_secret: DOCKER_PASS from_secret: DOCKER_PASS
repo: git.kizaing.ca/kizaing/TeleTok repo: git.kizaing.ca/kizaing/TeleTok
tags: latest tags: latest
platform: linux/amd64,linux/arm64
# Commented out until stuff actually works # Commented out until stuff actually works
trigger: trigger:

View File

@ -1,7 +1,14 @@
#Builds the bot from source
FROM mcr.microsoft.com/dotnet/sdk:6.0 AS build-task
COPY . /build
RUN cd /build && dotnet publish
# Actually runs the bot
FROM mcr.microsoft.com/dotnet/runtime:6.0-alpine3 FROM mcr.microsoft.com/dotnet/runtime:6.0-alpine3
WORKDIR /app/teletok WORKDIR /app/teletok
COPY bin/Debug/net6.0/publish/* /app/teletok/ COPY --from=build-task /build/bin/Debug/net6.0/publish/* /app/teletok/
CMD [ "TeleTok" ] CMD [ "TeleTok" ]