Compare commits

..

No commits in common. "1949c7af1bd51de22ead38acda651cf397a4c4ba" and "26dcd962b8741519c62954fcdfb8028ace9d3196" have entirely different histories.

2 changed files with 9 additions and 8 deletions

View File

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

View File

@ -1,14 +1,7 @@
#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
WORKDIR /app/teletok
COPY --from=build-task /build/bin/Debug/net6.0/publish/* /app/teletok/
COPY bin/Debug/net6.0/publish/* /app/teletok/
CMD [ "TeleTok" ]