From 3c5d1dbfd54e61fb91c8862adcd8cfb9f71dcca3 Mon Sep 17 00:00:00 2001 From: user-penguin Date: Wed, 13 Sep 2023 00:48:29 +0700 Subject: [PATCH] test build --- build/ci/.drone.yml | 2 +- build/ci/Dockerfile | 4 ++-- deploy/docker-compose.yml | 4 +--- 3 files changed, 4 insertions(+), 6 deletions(-) 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