enable drone builds
Dieser Commit ist enthalten in:
Ursprung
d057015fe7
Commit
67f5773dcc
1 geänderte Dateien mit 55 neuen und 0 gelöschten Zeilen
55
.drone.yml
Normale Datei
55
.drone.yml
Normale Datei
|
@ -0,0 +1,55 @@
|
||||||
|
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
|
Laden …
In neuem Issue referenzieren