change pipeline
continuous-integration/drone/push Build is failing
Details
continuous-integration/drone/push Build is failing
Details
This commit is contained in:
parent
a7caf6c422
commit
b2ca8c030b
|
@ -15,6 +15,42 @@ steps:
|
||||||
image: golang:1.20
|
image: golang:1.20
|
||||||
commands:
|
commands:
|
||||||
- GOOS=linux GOARCH=amd64 go build -o butler cmd/butler/main.go
|
- GOOS=linux GOARCH=amd64 go build -o butler cmd/butler/main.go
|
||||||
|
- touch .env
|
||||||
|
- echo TELEGRAM_TOKEN=AAAAAAAA >> .env
|
||||||
|
|
||||||
|
- name: copy to server
|
||||||
|
pull: if-not-exists
|
||||||
|
image: appleboy/drone-scp
|
||||||
|
settings:
|
||||||
|
host:
|
||||||
|
from_secret: ssh_ip
|
||||||
|
username:
|
||||||
|
from_secret: ssh_user
|
||||||
|
key:
|
||||||
|
from_secret: ssh_key
|
||||||
|
port:
|
||||||
|
from_secret: ssh_port
|
||||||
|
target: /home/crab/deploys/butler_bot
|
||||||
|
source:
|
||||||
|
- .env
|
||||||
|
- build/ci/Dockerfile
|
||||||
|
- deploy/docker-compose.yml
|
||||||
|
- migrations
|
||||||
|
rm: true
|
||||||
|
|
||||||
|
# - name: deploy
|
||||||
|
# pull: if-not-exists
|
||||||
|
# image: appleboy/drone-ssh
|
||||||
|
# settings:
|
||||||
|
# host:
|
||||||
|
# from_secret: ssh_ip
|
||||||
|
# username:
|
||||||
|
# from_secret: ssh_user
|
||||||
|
# key:
|
||||||
|
# from_secret: ssh_key
|
||||||
|
# port:
|
||||||
|
# from_secret: ssh_port
|
||||||
|
# script:
|
||||||
|
|
||||||
# TODO:
|
# TODO:
|
||||||
# scp bin, Dockerfile, docker-compose
|
# scp bin, Dockerfile, docker-compose
|
||||||
|
|
|
@ -1,10 +1,9 @@
|
||||||
version: "3.3"
|
version: "3.8"
|
||||||
|
|
||||||
services:
|
services:
|
||||||
|
|
||||||
butler:
|
butler:
|
||||||
container_name: butler
|
container_name: butler
|
||||||
build:
|
build: .
|
||||||
context: ../build/ci
|
|
||||||
dockerfile: Dockerfile
|
|
||||||
command: /butler
|
command: /butler
|
||||||
|
env_file:
|
||||||
|
- .env
|
||||||
|
|
Loading…
Reference in New Issue