diff --git a/build/ci/.drone.yml b/build/ci/.drone.yml index 925e34e..90a9bff 100644 --- a/build/ci/.drone.yml +++ b/build/ci/.drone.yml @@ -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 diff --git a/build/ci/Dockerfile b/build/ci/Dockerfile index 3d3f8d1..bf30748 100644 --- a/build/ci/Dockerfile +++ b/build/ci/Dockerfile @@ -1,4 +1,4 @@ FROM scratch -COPY butler / -COPY .env / +ADD butler / +ADD .env / CMD [ "/butler" ] diff --git a/deploy/docker-compose.yml b/deploy/docker-compose.yml index 866c737..e2dc6e8 100644 --- a/deploy/docker-compose.yml +++ b/deploy/docker-compose.yml @@ -4,6 +4,4 @@ services: butler: container_name: butler build: . - command: /butler - env_file: - - .env + command: sh butler