ekster/.drone.yml

40 lines
879 B
YAML
Raw Normal View History

2019-03-19 21:23:10 +00:00
kind: pipeline
name: default
2018-02-16 21:13:01 +00:00
2019-03-19 21:23:10 +00:00
workspace:
base: /go
path: src/p83.nl/go/ekster
2019-01-12 15:42:29 +00:00
2019-03-19 21:23:10 +00:00
steps:
- name: testing
image: golang:1.12-alpine
commands:
- export GOPATH=/go
- export CGO_ENABLED=0
- apk --no-cache add git
- go get -d -t ./...
- go build p83.nl/go/ekster/cmd/eksterd
- go test ./...
- name: publish
image: plugins/docker
settings:
repo: registry.stuifzandapp.com/microsub-server
registry: registry.stuifzandapp.com
username:
from_secret: docker_username
password:
from_secret: docker_password
- name: deploy
image: appleboy/drone-ssh
settings:
host: microsub.stuifzandapp.com
username: microsub
ssh_key:
from_secret: ssh_key
script:
- cd /home/microsub/microsub
- docker-compose pull web
- docker-compose up -d