This commit is contained in:
parent
fd745797cc
commit
269eec0c4b
53
.drone.yml
53
.drone.yml
@ -2,6 +2,10 @@
|
||||
kind: pipeline
|
||||
name: default
|
||||
|
||||
platform:
|
||||
os: linux
|
||||
arch: amd64
|
||||
|
||||
concurrency:
|
||||
limit: 1
|
||||
|
||||
@ -22,52 +26,27 @@ steps:
|
||||
commands:
|
||||
- hugo-official
|
||||
|
||||
- name: freeze
|
||||
image: appleboy/drone-ssh:1.5.5
|
||||
settings:
|
||||
host:
|
||||
from_secret: ssh_host
|
||||
key:
|
||||
from_secret: ssh_key
|
||||
script:
|
||||
- cp -R /var/www/virtual/geeklab/html/galaxy.geekdocs.de/ /var/www/virtual/geeklab/html/galaxy_freeze/
|
||||
- ln -sfn /var/www/virtual/geeklab/html/galaxy_freeze /var/www/virtual/geeklab/galaxy.geekdocs.de
|
||||
username:
|
||||
from_secret: ssh_username
|
||||
|
||||
- name: publish
|
||||
image: appleboy/drone-scp
|
||||
image: plugins/s3
|
||||
settings:
|
||||
host:
|
||||
from_secret: ssh_host
|
||||
key:
|
||||
from_secret: ssh_key
|
||||
rm: true
|
||||
access_key:
|
||||
from_secret: s3_access_key
|
||||
bucket: geekdocs
|
||||
delete: true
|
||||
endpoint: https://sp.rknet.org
|
||||
path_style: true
|
||||
secret_key:
|
||||
from_secret: s3_secret_access_key
|
||||
source: public/*
|
||||
strip_components: 1
|
||||
target: /var/www/virtual/geeklab/html/galaxy.geekdocs.de/
|
||||
username:
|
||||
from_secret: ssh_username
|
||||
|
||||
- name: cleanup
|
||||
image: appleboy/drone-ssh:1.5.5
|
||||
settings:
|
||||
host:
|
||||
from_secret: ssh_host
|
||||
key:
|
||||
from_secret: ssh_key
|
||||
script:
|
||||
- ln -sfn /var/www/virtual/geeklab/html/galaxy.geekdocs.de /var/www/virtual/geeklab/galaxy.geekdocs.de
|
||||
- rm -rf /var/www/virtual/geeklab/html/galaxy_freeze/
|
||||
username:
|
||||
from_secret: ssh_username
|
||||
target: ${DRONE_REPO_NAME}
|
||||
|
||||
trigger:
|
||||
ref:
|
||||
- refs/heads/master
|
||||
- refs/pull/**
|
||||
|
||||
---
|
||||
kind: signature
|
||||
hmac: 786a4014e58c7619b881393cec592ed3ba5f186da67558c43663cc0d9dc07b92
|
||||
hmac: d2a509c25adf88f4e2227a7e87fe9ad37025e41c71ef038ad21608818a7b8170
|
||||
|
||||
...
|
||||
|
Reference in New Issue
Block a user