www/.drone.yml
Nick Slowinski 67f5773dcc
Alle Prüfungen waren erfolgreich
continuous-integration/drone/push Build is passing
continuous-integration/drone/promote/production Build is passing
enable drone builds
2023-07-07 11:02:46 +02:00

55 Zeilen
Kein EOL
969 B
YAML

name: test
kind: pipeline
type: docker
platform:
os: linux
arch: amd64
steps:
- name: clone submodules
image: alpine/git:2.40.1
commands:
- git submodule update --init --recursive
- name: build
image: klakegg/hugo:0.111.3-ext-alpine-ci
trigger:
event:
- push
- pull_request
---
name: deploy to production
kind: pipeline
type: docker
platform:
os: linux
arch: amd64
steps:
- name: clone submodules
image: alpine/git:2.40.1
commands:
- git submodule update --init --recursive
- name: build
image: klakegg/hugo:0.111.3-ext-alpine-ci
- name: deploy to production
image: appleboy/drone-scp
settings:
host: helene.nick-slowinski.de
username: drone_nick-slowinski_de-www
key:
from_secret: ssh_private_key-drone_nick-slowinski_de-www
target: /var/www/nick-slowinski.de/www
source: /drone/src/public
rm: true
overwrite: true
strip_components: 3
trigger:
event:
- promote
target:
- production