kind: pipeline type: docker name: staging trigger: branches: - master event: - push steps: - name: test image: golang:1.13.5 commands: - go test ./... - name: build image: plugins/docker settings: username: from_secret: dockerlogin password: from_secret: dockerpassword repo: llehouerou/zbbot tags: latest --- kind: pipeline type: ssh name: deploy server: host: from_secret: host user: from_secret: username ssh_key: from_secret: ssh_key clone: disable: true steps: - name: deploy commands: - cd /home/laurent/docker/ - docker-compose pull dnsupdater - docker-compose up -d dnsupdater depends_on: - staging