This commit is contained in:
parent
9c84c3dff1
commit
fc7768ad34
1 changed files with 14 additions and 2 deletions
14
.drone.yml
14
.drone.yml
|
@ -7,7 +7,7 @@ steps:
|
||||||
- name: build
|
- name: build
|
||||||
image: golang
|
image: golang
|
||||||
commands:
|
commands:
|
||||||
- go build -o notfall ./
|
- CGO_ENABLED=0 GOOS=linux go build -o notfall ./
|
||||||
- name: docker
|
- name: docker
|
||||||
image: plugins/docker
|
image: plugins/docker
|
||||||
settings:
|
settings:
|
||||||
|
@ -15,3 +15,15 @@ steps:
|
||||||
username: kekskurse
|
username: kekskurse
|
||||||
password:
|
password:
|
||||||
from_secret: docker_password
|
from_secret: docker_password
|
||||||
|
- name: ssh commands
|
||||||
|
image: appleboy/drone-ssh
|
||||||
|
settings:
|
||||||
|
host: green.keks.cloud
|
||||||
|
username: kekskurse
|
||||||
|
port: 65223
|
||||||
|
key:
|
||||||
|
from_secret: ssh_key
|
||||||
|
script:
|
||||||
|
- cd ~/notfall;sudo docker-compose down
|
||||||
|
- sudo docker pull kekskurse/notfall
|
||||||
|
- cd ~/notfallsudo docker-compose up -d
|
Loading…
Reference in a new issue