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:
|
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
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
FROM scratch
|
FROM scratch
|
||||||
COPY butler /
|
ADD butler /
|
||||||
COPY .env /
|
ADD .env /
|
||||||
CMD [ "/butler" ]
|
CMD [ "/butler" ]
|
||||||
|
|
|
@ -4,6 +4,4 @@ services:
|
||||||
butler:
|
butler:
|
||||||
container_name: butler
|
container_name: butler
|
||||||
build: .
|
build: .
|
||||||
command: /butler
|
command: sh butler
|
||||||
env_file:
|
|
||||||
- .env
|
|
||||||
|
|
Loading…
Reference in New Issue