Trying new method via SCP, automated building, and less server side configuration necessary.
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
f12248bf01
commit
6f023813be
4 changed files with 62 additions and 110 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -1,5 +1,5 @@
|
||||||
*.kdev4
|
*.kdev4
|
||||||
kdev4
|
kdev4
|
||||||
themes
|
themes/Omegamma
|
||||||
public
|
public
|
||||||
resources
|
resources
|
||||||
|
|
|
@ -1,72 +0,0 @@
|
||||||
baseURL: https://dev.ad5001.eu
|
|
||||||
languageCode: en
|
|
||||||
title: Ad5001
|
|
||||||
theme: Omegamma
|
|
||||||
copyright: Copyright © Ad5001 2021
|
|
||||||
enableGitInfo: "true"
|
|
||||||
|
|
||||||
frontmatter:
|
|
||||||
date: ["date", "publishDate", "lastmod"]
|
|
||||||
lastmod: [":git", "date", "publishDate"]
|
|
||||||
|
|
||||||
params:
|
|
||||||
brandWebsite: /
|
|
||||||
websiteSource: https://git.ad5001.eu/Ad5001/ad5001.eu
|
|
||||||
poweredBy: Powered by
|
|
||||||
|
|
||||||
languages:
|
|
||||||
en:
|
|
||||||
languageName: English
|
|
||||||
menu:
|
|
||||||
main:
|
|
||||||
- identifier: apps
|
|
||||||
name: Apps
|
|
||||||
pre: <i class="icon-apps icon-as-text" alt="apps icon"></i>
|
|
||||||
title: apps section
|
|
||||||
url: https://apps.ad5001.eu/
|
|
||||||
weight: 20
|
|
||||||
- identifier: git
|
|
||||||
name: Git
|
|
||||||
pre: <i class="icon-git icon-as-text" alt="git icon"></i>
|
|
||||||
title: git section
|
|
||||||
url: https://git.ad5001.eu
|
|
||||||
weight: 10
|
|
||||||
- identifier: about
|
|
||||||
name: About
|
|
||||||
pre: <i class="icon-about icon-as-text" alt="about icon"></i>
|
|
||||||
title: about section
|
|
||||||
url: /about
|
|
||||||
weight: 0
|
|
||||||
weight: 0
|
|
||||||
fr:
|
|
||||||
languageName: Français
|
|
||||||
menu:
|
|
||||||
main:
|
|
||||||
- identifier: apps
|
|
||||||
name: Apps
|
|
||||||
pre: <i class="icon-apps icon-as-text" alt="apps icon"></i>
|
|
||||||
title: apps list section
|
|
||||||
url: https://apps.ad5001.eu/fr/
|
|
||||||
weight: 20
|
|
||||||
- identifier: git
|
|
||||||
name: Git
|
|
||||||
pre: <i class="icon-git icon-as-text" alt="git icon"></i>
|
|
||||||
title: git section
|
|
||||||
url: https://git.ad5001.eu
|
|
||||||
weight: 10
|
|
||||||
- identifier: about
|
|
||||||
name: À propos
|
|
||||||
pre: <i class="icon-about icon-as-text" alt="about icon"></i>
|
|
||||||
title: about section
|
|
||||||
url: /fr/a-propos
|
|
||||||
weight: 0
|
|
||||||
weight: 0
|
|
||||||
|
|
||||||
markup:
|
|
||||||
goldmark:
|
|
||||||
renderer:
|
|
||||||
hardWraps: false
|
|
||||||
unsafe: true
|
|
||||||
xhtml: false
|
|
||||||
|
|
||||||
|
|
97
ci/drone.yml
97
ci/drone.yml
|
@ -1,44 +1,67 @@
|
||||||
kind: pipeline
|
kind: pipeline
|
||||||
type: ssh
|
|
||||||
name: default
|
name: default
|
||||||
|
|
||||||
|
clone:
|
||||||
|
git:
|
||||||
|
image: plugins/git
|
||||||
|
recursive: true
|
||||||
|
|
||||||
server:
|
server:
|
||||||
host:
|
host:
|
||||||
from_secret: SSH_HOST
|
from_secret: SSH_HOST
|
||||||
user:
|
user:
|
||||||
from_secret: SSH_USERNAME
|
from_secret: SSH_USERNAME
|
||||||
password:
|
password:
|
||||||
from_secret: SSH_PASSWORD
|
from_secret: SSH_PASSWORD
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Deploy on dev.ad5001.eu
|
- name: Build dev.ad5001.eu
|
||||||
environment:
|
image: plugins/hugo
|
||||||
DEV_WWW_PATH:
|
settings:
|
||||||
from_secret: DEV_WWW_PATH
|
hugo_version: 0.80
|
||||||
commands:
|
validate: true
|
||||||
- cd "$DEV_WWW_PATH"
|
url: https://dev.ad5001.eu
|
||||||
- git pull
|
when:
|
||||||
- cd themes/Omegamma
|
event: [ push, tag ]
|
||||||
- git pull
|
branch: [ master ]
|
||||||
- cd ../..
|
|
||||||
- rm -rf public
|
|
||||||
- hugo --config ci/dev.config.yml
|
|
||||||
when:
|
|
||||||
event: [ push, tag ]
|
|
||||||
branch: [ master ]
|
|
||||||
|
|
||||||
- name: Deploy on ad5001.eu
|
- name: Deploy dev.ad5001.eu
|
||||||
environment:
|
image: appleboy/drone-scp
|
||||||
PROD_WWW_PATH:
|
settings:
|
||||||
from_secret: PROD_WWW_PATH
|
host:
|
||||||
commands:
|
from_secret: SSH_HOST
|
||||||
- cd "$PROD_WWW_PATH"
|
username:
|
||||||
- git pull
|
from_secret: SSH_USERNAME
|
||||||
- cd themes/Omegamma
|
password:
|
||||||
- git pull
|
from_secret: SSH_PASSWORD
|
||||||
- cd ../..
|
target:
|
||||||
- rm -rf public
|
from_secret: DEV_WWW_PATH
|
||||||
- hugo
|
source: public/*
|
||||||
when:
|
when:
|
||||||
event: [ push, tag ]
|
event: [ push, tag ]
|
||||||
branch: [ prod ]
|
branch: [ master ]
|
||||||
|
|
||||||
|
- name: Build ad5001.eu
|
||||||
|
image: plugins/hugo
|
||||||
|
settings:
|
||||||
|
hugo_version: 0.80
|
||||||
|
validate: true
|
||||||
|
when:
|
||||||
|
event: [ push, tag ]
|
||||||
|
branch: [ prod ]
|
||||||
|
|
||||||
|
- name: Deploy 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: PROD_WWW_PATH
|
||||||
|
source: public/*
|
||||||
|
when:
|
||||||
|
event: [ push, tag ]
|
||||||
|
branch: [ prod ]
|
||||||
|
|
1
themes/omegamma
Submodule
1
themes/omegamma
Submodule
|
@ -0,0 +1 @@
|
||||||
|
Subproject commit cf25bd95fb2d9448939d58966a62225b82911cc0
|
Loading…
Reference in a new issue