Proper yaml linting.
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Ad5001 2021-08-11 22:05:43 +02:00
parent d006d4a562
commit c1f54d8540
Signed by: Ad5001
GPG Key ID: EF45F9C6AFE20160
1 changed files with 34 additions and 33 deletions

View File

@ -1,3 +1,4 @@
---
kind: pipeline
name: default
@ -12,24 +13,24 @@ steps:
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
# 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.ad5001.eu
image: xdevbase/hugo-builder:latest
commands:
- hugo --config ci/dev.config.yml
when:
event: [ push, tag ]
branch: [ main ]
event: [push, tag]
branch: [main]
- name: Remove old dev.ad5001.eu
image: appleboy/drone-ssh
environment:
@ -43,15 +44,15 @@ steps:
password:
from_secret: SSH_PASSWORD
envs:
- DEV_WWW_PATH
- DEV_WWW_PATH
script:
- export DEV_WWW_PATH=$DEV_WWW_PATH
- cd "$DEV_WWW_PATH"
- rm -rf *
- export DEV_WWW_PATH=$DEV_WWW_PATH
- cd "$DEV_WWW_PATH"
- rm -rf *
when:
event: [ push, tag ]
branch: [ main ]
event: [push, tag]
branch: [main]
- name: Deploy dev.ad5001.eu
image: appleboy/drone-scp
settings:
@ -65,16 +66,16 @@ steps:
from_secret: DEV_WWW_PATH
source: public/*
when:
event: [ push, tag ]
branch: [ main ]
event: [push, tag]
branch: [main]
- name: Build ad5001.eu
image: xdevbase/hugo-builder:latest
commands:
- hugo
when:
event: [ push, tag ]
branch: [ prod ]
event: [push, tag]
branch: [prod]
- name: Remove old ad5001.eu
image: appleboy/drone-ssh
@ -89,15 +90,15 @@ steps:
password:
from_secret: SSH_PASSWORD
envs:
- PROD_WWW_PATH
- PROD_WWW_PATH
script:
- export DEV_WWW_PATH=$DEV_WWW_PATH
- cd "$PROD_WWW_PATH"
- rm -rf *
- export DEV_WWW_PATH=$DEV_WWW_PATH
- cd "$PROD_WWW_PATH"
- rm -rf *
when:
event: [ push, tag ]
branch: [ prod ]
event: [push, tag]
branch: [prod]
- name: Deploy ad5001.eu
image: appleboy/drone-scp
settings:
@ -111,5 +112,5 @@ steps:
from_secret: PROD_WWW_PATH
source: public/*
when:
event: [ push, tag ]
branch: [ prod ]
event: [push, tag]
branch: [prod]