geforkt von nick-slowinski.de/docs
Commits vergleichen
23 Commits
main
...
drone-setu
Autor | SHA1 | Datum | |
---|---|---|---|
5a084757a5 | |||
922c979e74 | |||
eb48ee160b | |||
412eb1f25d | |||
fed83c361d | |||
7a811d8bb2 | |||
d552860f59 | |||
6a5e508373 | |||
61e09611ac | |||
ac1bebd5bc | |||
b179f0366e | |||
723fed025f | |||
622e1317ea | |||
46d1a63924 | |||
153738e26e | |||
b60c95fb11 | |||
64bb72b1c9 | |||
f4a5a24e45 | |||
0744165f3d | |||
08ca787295 | |||
b6a4000858 | |||
647ff19275 | |||
8147d3a937 |
1 geänderte Dateien mit 2 neuen und 70 gelöschten Zeilen
72
.drone.yml
72
.drone.yml
|
@ -1,4 +1,4 @@
|
|||
name: test
|
||||
name: amd64
|
||||
kind: pipeline
|
||||
type: docker
|
||||
|
||||
|
@ -18,11 +18,7 @@ steps:
|
|||
commands:
|
||||
- mkdir ~/docs && cd ~/docs
|
||||
- git clone $DRONE_REPO_LINK .
|
||||
- git checkout $DRONE_COMMIT
|
||||
when:
|
||||
branch:
|
||||
exclude:
|
||||
- renovate/*
|
||||
- git checkout $DRONE_COMMIT -b $DRONE_BRANCH
|
||||
- name: build
|
||||
image: registry.access.redhat.com/ubi9/python-311:1-12
|
||||
volumes:
|
||||
|
@ -33,71 +29,7 @@ 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