fix env
continuous-integration/drone/push Build is passing

This commit is contained in:
2024-11-12 03:10:06 +07:00
parent 6a7a1bf3d2
commit ab57c7fa41
2 changed files with 28 additions and 4 deletions
+3 -3
View File
@@ -7,16 +7,16 @@ steps:
pull: if-not-exists
image: golang:1.23
environment:
TELEGRAM_TOKEN:
BOT_TOKEN:
from_secret: bot_token
POSTGRES_URL_CONNECT:
from_secret: postgres_url_connect
settings:
envs: [ TELEGRAM_TOKEN,POSTGRES_URL_CONNECT ]
envs: [ BOT_TOKEN,POSTGRES_URL_CONNECT ]
commands:
- CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -o smm_tg cmd/smm_tg/main.go
- touch .env
- echo TELEGRAM_TOKEN=$${TELEGRAM_TOKEN} >> .env
- echo BOT_TOKEN=$${TELEGRAM_TOKEN} >> .env
- echo POSTGRES_URL_CONNECT=$${POSTGRES_URL_CONNECT} >> .env
- name: test