Building and auto publishing!
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
0e2838a79b
commit
41822ba3da
4 changed files with 76 additions and 1 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -1,5 +1,5 @@
|
||||||
*.kdev4
|
*.kdev4
|
||||||
kdev4
|
kdev4
|
||||||
themes
|
themes/Omegamma
|
||||||
public
|
public
|
||||||
resources
|
resources
|
||||||
|
|
3
.gitmodules
vendored
Normal file
3
.gitmodules
vendored
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
[submodule "themes/omegamma"]
|
||||||
|
path = themes/omegamma
|
||||||
|
url = https://git.ad5001.eu/Ad5001/omegamma
|
71
ci/drone.yml
Normal file
71
ci/drone.yml
Normal file
|
@ -0,0 +1,71 @@
|
||||||
|
kind: pipeline
|
||||||
|
name: default
|
||||||
|
|
||||||
|
clone:
|
||||||
|
git:
|
||||||
|
image: plugins/git
|
||||||
|
recursive: true
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Initilizing submodules
|
||||||
|
image: alpine/git
|
||||||
|
environment:
|
||||||
|
GIT_ASKPASS: "/bin/git-askpass-from-env"
|
||||||
|
commands:
|
||||||
|
# Installing little script to get git password from environment.
|
||||||
|
- wget https://download.ad5001.eu/other/git-askpass-from-env.sh
|
||||||
|
- mv git-askpass-from-env.sh /bin/git-askpass-from-env
|
||||||
|
- chmod +x /bin/git-askpass-from-env
|
||||||
|
# Changing submodule URL to https://<USERNAME>@git.ad5001.eu/Ad5001/omegamma.git
|
||||||
|
- git submodule init
|
||||||
|
- git config submodule.sub/omegamma.url https://$DRONE_GIT_USERNAME@git.ad5001.eu/Ad5001/omegamma.git
|
||||||
|
# Fetching submodules
|
||||||
|
- git submodule update --init --recursive
|
||||||
|
|
||||||
|
- name: Build dev.apps.ad5001.eu
|
||||||
|
image: xdevbase/hugo-builder:latest
|
||||||
|
commands:
|
||||||
|
- hugo -b https://dev.apps.ad5001.eu
|
||||||
|
when:
|
||||||
|
event: [ push, tag ]
|
||||||
|
branch: [ main ]
|
||||||
|
|
||||||
|
- name: Deploy dev.apps.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 apps.ad5001.eu
|
||||||
|
image: xdevbase/hugo-builder:latest
|
||||||
|
commands:
|
||||||
|
- hugo -b https://apps.ad5001.eu
|
||||||
|
when:
|
||||||
|
event: [ push, tag ]
|
||||||
|
branch: [ prod ]
|
||||||
|
|
||||||
|
- name: Deploy apps.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 d5c7d6c2cc392cce306f4354b59fc07fc4504b82
|
Loading…
Reference in a new issue