test build
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
d8fffdfeda
commit
3c5d1dbfd5
|
@ -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
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
FROM scratch
|
||||
COPY butler /
|
||||
COPY .env /
|
||||
ADD butler /
|
||||
ADD .env /
|
||||
CMD [ "/butler" ]
|
||||
|
|
|
@ -4,6 +4,4 @@ services:
|
|||
butler:
|
||||
container_name: butler
|
||||
build: .
|
||||
command: /butler
|
||||
env_file:
|
||||
- .env
|
||||
command: sh butler
|
||||
|
|
Loading…
Reference in New Issue