Przeglądaj źródła

added trigger

new_year
Sebastian 6 miesięcy temu
rodzic
commit
bf97a58cd5
Podpisane przez: imo <sebastian@hueb-ner.de> ID klucza GPG: AFA10CBFE4391C0C
1 zmienionych plików z 37 dodań i 34 usunięć
  1. +37
    -34
      .drone.yml

+ 37
- 34
.drone.yml Wyświetl plik

@@ -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

Ładowanie…
Anuluj
Zapisz