2019-12-17 17:30:52 +00:00
|
|
|
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
|
2019-12-17 17:34:31 +00:00
|
|
|
repo: llehouerou/dnsupdater
|
2019-12-17 17:30:52 +00:00
|
|
|
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
|