geforkt von nick-slowinski.de/docs
Commits vergleichen
16 Commits
drone-setu
...
main
Autor | SHA1 | Datum | |
---|---|---|---|
0443c06f36 | |||
212eae970e | |||
a40b4b9d80 | |||
d81f87b152 | |||
c80865ad1a | |||
fe2243553a | |||
faef516108 | |||
0f6b938de6 | |||
29ad6bc40b | |||
7ed30ca908 | |||
ea971a432a | |||
6822f998aa | |||
6ed4319e58 | |||
3a6af5ee5f | |||
78fe49bb84 | |||
bbc9548a93 |
1 geänderte Dateien mit 70 neuen und 2 gelöschten Zeilen
72
.drone.yml
72
.drone.yml
|
@ -1,4 +1,4 @@
|
|||
name: amd64
|
||||
name: test
|
||||
kind: pipeline
|
||||
type: docker
|
||||
|
||||
|
@ -18,7 +18,11 @@ steps:
|
|||
commands:
|
||||
- mkdir ~/docs && cd ~/docs
|
||||
- git clone $DRONE_REPO_LINK .
|
||||
- git checkout $DRONE_COMMIT -b $DRONE_BRANCH
|
||||
- git checkout $DRONE_COMMIT
|
||||
when:
|
||||
branch:
|
||||
exclude:
|
||||
- renovate/*
|
||||
- name: build
|
||||
image: registry.access.redhat.com/ubi9/python-311:1-12
|
||||
volumes:
|
||||
|
@ -29,7 +33,71 @@ steps:
|
|||
- pip install --upgrade pip
|
||||
- pip install -r requirements.txt
|
||||
- mkdocs build
|
||||
when:
|
||||
branch:
|
||||
exclude:
|
||||
- renovate/*
|
||||
|
||||
trigger:
|
||||
event:
|
||||
- push
|
||||
- pull_request
|
||||
volumes:
|
||||
- name: cache
|
||||
temp: {}
|
||||
---
|
||||
name: deploy to production
|
||||
kind: pipeline
|
||||
type: docker
|
||||
|
||||
platform:
|
||||
os: linux
|
||||
arch: amd64
|
||||
|
||||
clone:
|
||||
disable: true
|
||||
|
||||
steps:
|
||||
- name: clone
|
||||
image: registry.access.redhat.com/ubi9/python-311:1-12
|
||||
volumes:
|
||||
- name: cache
|
||||
path: /opt/app-root/src
|
||||
commands:
|
||||
- mkdir ~/docs && cd ~/docs
|
||||
- git clone $DRONE_REPO_LINK .
|
||||
- git checkout $DRONE_COMMIT
|
||||
- name: build
|
||||
image: registry.access.redhat.com/ubi9/python-311:1-12
|
||||
volumes:
|
||||
- name: cache
|
||||
path: /opt/app-root/src
|
||||
commands:
|
||||
- cd ~/docs
|
||||
- pip install --upgrade pip
|
||||
- pip install -r requirements.txt
|
||||
- mkdocs build
|
||||
- name: deploy to production
|
||||
image: appleboy/drone-scp
|
||||
volumes:
|
||||
- name: cache
|
||||
path: /opt/app-root/src
|
||||
settings:
|
||||
host: helene.nick-slowinski.de
|
||||
username: drone_nick-slowinski_de-docs
|
||||
key:
|
||||
from_secret: ssh_private_key-drone_nick-slowinski_de-docs
|
||||
target: /var/www/nick-slowinski.de/docs/production
|
||||
source: /opt/app-root/src/docs/site
|
||||
rm: true
|
||||
overwrite: true
|
||||
strip_components: 5
|
||||
|
||||
trigger:
|
||||
event:
|
||||
- promote
|
||||
target:
|
||||
- production
|
||||
volumes:
|
||||
- name: cache
|
||||
temp: {}
|
Laden …
In neuem Issue referenzieren