Compare commits
2 Commits
26dcd962b8
...
1949c7af1b
Author | SHA1 | Date | |
---|---|---|---|
|
1949c7af1b | ||
|
993a94ddb1 |
@ -3,12 +3,6 @@ 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:
|
||||
@ -19,8 +13,6 @@ steps:
|
||||
from_secret: DOCKER_PASS
|
||||
repo: git.kizaing.ca/kizaing/TeleTok
|
||||
tags: latest
|
||||
platform: linux/amd64,linux/arm64
|
||||
|
||||
|
||||
# Commented out until stuff actually works
|
||||
trigger:
|
||||
|
@ -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
|
||||
|
||||
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" ]
|
Loading…
Reference in New Issue
Block a user