Removing dev.ad5001.eu

This commit is contained in:
Adsooi 2023-03-02 18:29:21 +01:00
parent 00f3c94de5
commit e15f24612f
Signed by: Ad5001
GPG key ID: EF45F9C6AFE20160

View file

@ -23,51 +23,51 @@ steps:
# Fetching submodules
- git submodule update --init --recursive
- name: Build dev.ad5001.eu
image: xdevbase/hugo-builder:latest
commands:
- hugo --config ci/dev.config.yml --minify
when:
event: [push, tag]
branch: [main]
- name: Remove old dev.ad5001.eu
image: appleboy/drone-ssh
environment:
DEV_WWW_PATH:
from_secret: DEV_WWW_PATH
settings:
host:
from_secret: SSH_HOST
username:
from_secret: SSH_USERNAME
password:
from_secret: SSH_PASSWORD
envs:
- DEV_WWW_PATH
script:
- export DEV_WWW_PATH=$DEV_WWW_PATH
- cd "$DEV_WWW_PATH"
- rm -rf *
when:
event: [push, tag]
branch: [main]
- name: Deploy dev.ad5001.eu
image: appleboy/drone-scp
settings:
host:
from_secret: SSH_HOST
username:
from_secret: SSH_USERNAME
password:
from_secret: SSH_PASSWORD
target:
from_secret: DEV_WWW_PATH
source: public/*
when:
event: [push, tag]
branch: [main]
# - name: Build dev.ad5001.eu
# image: xdevbase/hugo-builder:latest
# commands:
# - hugo --config ci/dev.config.yml --minify
# when:
# event: [push, tag]
# branch: [main]
#
# - name: Remove old dev.ad5001.eu
# image: appleboy/drone-ssh
# environment:
# DEV_WWW_PATH:
# from_secret: DEV_WWW_PATH
# settings:
# host:
# from_secret: SSH_HOST
# username:
# from_secret: SSH_USERNAME
# password:
# from_secret: SSH_PASSWORD
# envs:
# - DEV_WWW_PATH
# script:
# - export DEV_WWW_PATH=$DEV_WWW_PATH
# - cd "$DEV_WWW_PATH"
# - rm -rf *
# when:
# event: [push, tag]
# branch: [main]
#
# - name: Deploy dev.ad5001.eu
# image: appleboy/drone-scp
# settings:
# host:
# from_secret: SSH_HOST
# username:
# from_secret: SSH_USERNAME
# password:
# from_secret: SSH_PASSWORD
# target:
# from_secret: DEV_WWW_PATH
# source: public/*
# when:
# event: [push, tag]
# branch: [main]
- name: Build ad5001.eu
image: xdevbase/hugo-builder:latest
@ -89,6 +89,8 @@ steps:
from_secret: SSH_USERNAME
password:
from_secret: SSH_PASSWORD
port:
from_secret: SSH_PORT
envs:
- PROD_WWW_PATH
script: