notfall/.drone.yml
kekskurse ec9359c849
All checks were successful
continuous-integration/drone/push Build is passing
Stuff
2022-01-16 12:02:52 +01:00

29 lines
No EOL
659 B
YAML

---
kind: pipeline
type: docker
name: default
steps:
- name: build
image: golang
commands:
- CGO_ENABLED=0 GOOS=linux go build -o notfall ./
- name: docker
image: plugins/docker
settings:
repo: kekskurse/notfall
username: kekskurse
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 ~/notfall;sudo docker-compose up -d