Removing dev.ad5001.eu
This commit is contained in:
parent
00f3c94de5
commit
e15f24612f
1 changed files with 47 additions and 45 deletions
92
ci/drone.yml
92
ci/drone.yml
|
@ -23,51 +23,51 @@ steps:
|
||||||
# Fetching submodules
|
# Fetching submodules
|
||||||
- git submodule update --init --recursive
|
- git submodule update --init --recursive
|
||||||
|
|
||||||
- name: Build dev.ad5001.eu
|
# - name: Build dev.ad5001.eu
|
||||||
image: xdevbase/hugo-builder:latest
|
# image: xdevbase/hugo-builder:latest
|
||||||
commands:
|
# commands:
|
||||||
- hugo --config ci/dev.config.yml --minify
|
# - hugo --config ci/dev.config.yml --minify
|
||||||
when:
|
# when:
|
||||||
event: [push, tag]
|
# event: [push, tag]
|
||||||
branch: [main]
|
# branch: [main]
|
||||||
|
#
|
||||||
- name: Remove old dev.ad5001.eu
|
# - name: Remove old dev.ad5001.eu
|
||||||
image: appleboy/drone-ssh
|
# image: appleboy/drone-ssh
|
||||||
environment:
|
# environment:
|
||||||
DEV_WWW_PATH:
|
# DEV_WWW_PATH:
|
||||||
from_secret: DEV_WWW_PATH
|
# from_secret: DEV_WWW_PATH
|
||||||
settings:
|
# settings:
|
||||||
host:
|
# host:
|
||||||
from_secret: SSH_HOST
|
# from_secret: SSH_HOST
|
||||||
username:
|
# username:
|
||||||
from_secret: SSH_USERNAME
|
# from_secret: SSH_USERNAME
|
||||||
password:
|
# password:
|
||||||
from_secret: SSH_PASSWORD
|
# from_secret: SSH_PASSWORD
|
||||||
envs:
|
# envs:
|
||||||
- DEV_WWW_PATH
|
# - DEV_WWW_PATH
|
||||||
script:
|
# script:
|
||||||
- export DEV_WWW_PATH=$DEV_WWW_PATH
|
# - export DEV_WWW_PATH=$DEV_WWW_PATH
|
||||||
- cd "$DEV_WWW_PATH"
|
# - cd "$DEV_WWW_PATH"
|
||||||
- rm -rf *
|
# - rm -rf *
|
||||||
when:
|
# when:
|
||||||
event: [push, tag]
|
# event: [push, tag]
|
||||||
branch: [main]
|
# branch: [main]
|
||||||
|
#
|
||||||
- name: Deploy dev.ad5001.eu
|
# - name: Deploy dev.ad5001.eu
|
||||||
image: appleboy/drone-scp
|
# image: appleboy/drone-scp
|
||||||
settings:
|
# settings:
|
||||||
host:
|
# host:
|
||||||
from_secret: SSH_HOST
|
# from_secret: SSH_HOST
|
||||||
username:
|
# username:
|
||||||
from_secret: SSH_USERNAME
|
# from_secret: SSH_USERNAME
|
||||||
password:
|
# password:
|
||||||
from_secret: SSH_PASSWORD
|
# from_secret: SSH_PASSWORD
|
||||||
target:
|
# target:
|
||||||
from_secret: DEV_WWW_PATH
|
# from_secret: DEV_WWW_PATH
|
||||||
source: public/*
|
# source: public/*
|
||||||
when:
|
# when:
|
||||||
event: [push, tag]
|
# event: [push, tag]
|
||||||
branch: [main]
|
# branch: [main]
|
||||||
|
|
||||||
- name: Build ad5001.eu
|
- name: Build ad5001.eu
|
||||||
image: xdevbase/hugo-builder:latest
|
image: xdevbase/hugo-builder:latest
|
||||||
|
@ -89,6 +89,8 @@ steps:
|
||||||
from_secret: SSH_USERNAME
|
from_secret: SSH_USERNAME
|
||||||
password:
|
password:
|
||||||
from_secret: SSH_PASSWORD
|
from_secret: SSH_PASSWORD
|
||||||
|
port:
|
||||||
|
from_secret: SSH_PORT
|
||||||
envs:
|
envs:
|
||||||
- PROD_WWW_PATH
|
- PROD_WWW_PATH
|
||||||
script:
|
script:
|
||||||
|
|
Loading…
Reference in a new issue