Ver código fonte

added trigger

new_year
Sebastian 6 meses atrás
pai
commit
bf97a58cd5
Acessado por: imo <sebastian@hueb-ner.de> ID da chave GPG: AFA10CBFE4391C0C
1 arquivos alterados com 37 adições e 34 exclusões
  1. +37
    -34
      .drone.yml

+ 37
- 34
.drone.yml Ver arquivo

@@ -2,39 +2,42 @@ kind: pipeline
type: docker
name: default

trigger:
event:
include:
- push
exclude:
- pull_request

steps:
- name: build
image: plugins/hugo
settings:
hugo_version: 0.57.2
validate: true
source: 5222.de/
output: ../public
when:
event:
exclude:
- pull_request
- name: build
image: plugins/hugo
settings:
hugo_version: 0.57.2
validate: true
source: 5222.de/
output: ../public

- name: upload
image: drillster/drone-rsync
settings:
hosts:
from_secret: rsync_server
source: ./public/
target:
from_secret: rsync_target
recursive: true
delete: true
environment:
RSYNC_KEY:
from_secret: rsync_key
RSYNC_USER:
from_secret: rsync_user
when:
status:
- success
branch:
- master
event:
exclude:
- pull_request
- name: upload
image: drillster/drone-rsync
settings:
hosts:
from_secret: rsync_server
source: ./public/
target:
from_secret: rsync_target
recursive: true
delete: true
environment:
RSYNC_KEY:
from_secret: rsync_key
RSYNC_USER:
from_secret: rsync_user
when:
status:
- success
branch:
- master
event:
exclude:
- pull_request

Carregando…
Cancelar
Salvar