test build
continuous-integration/drone/push Build is passing Details

This commit is contained in:
user-penguin 2023-09-13 00:48:29 +07:00
parent d8fffdfeda
commit 3c5d1dbfd5
3 changed files with 4 additions and 6 deletions

View File

@ -21,7 +21,7 @@ steps:
settings:
envs: [ TELEGRAM_TOKEN,POSTGRES_URL_CONNECT ]
commands:
- GOOS=linux GOARCH=amd64 go build -o butler cmd/butler/main.go
- go build -o butler cmd/butler/main.go
- touch .env
- echo TELEGRAM_TOKEN=$${TELEGRAM_TOKEN} >> .env
- echo POSTGRES_URL_CONNECT=$${POSTGRES_URL_CONNECT} >> .env

View File

@ -1,4 +1,4 @@
FROM scratch
COPY butler /
COPY .env /
ADD butler /
ADD .env /
CMD [ "/butler" ]

View File

@ -4,6 +4,4 @@ services:
butler:
container_name: butler
build: .
command: /butler
env_file:
- .env
command: sh butler