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 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:
@ -13,6 +19,8 @@ name: publish-bot
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,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 FROM mcr.microsoft.com/dotnet/runtime:6.0-alpine3
WORKDIR /app/teletok 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" ] CMD [ "TeleTok" ]