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: settings:
envs: [ TELEGRAM_TOKEN,POSTGRES_URL_CONNECT ] envs: [ TELEGRAM_TOKEN,POSTGRES_URL_CONNECT ]
commands: commands:
- GOOS=linux GOARCH=amd64 go build -o butler cmd/butler/main.go - go build -o butler cmd/butler/main.go
- touch .env - touch .env
- echo TELEGRAM_TOKEN=$${TELEGRAM_TOKEN} >> .env - echo TELEGRAM_TOKEN=$${TELEGRAM_TOKEN} >> .env
- echo POSTGRES_URL_CONNECT=$${POSTGRES_URL_CONNECT} >> .env - echo POSTGRES_URL_CONNECT=$${POSTGRES_URL_CONNECT} >> .env

View File

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

View File

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