Parcourir la source

added trigger

new_year
Sebastian il y a 6 mois
Parent
révision
bf97a58cd5
Signé par: imo <sebastian@hueb-ner.de> ID de la clé GPG: AFA10CBFE4391C0C
1 fichiers modifiés avec 37 ajouts et 34 suppressions
  1. +37
    -34
      .drone.yml

+ 37
- 34
.drone.yml Voir le fichier

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

Chargement…
Annuler
Enregistrer