fix: correctly indent and init yaml documents
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
still some lines are over 80 characters, that needs fixing, too
This commit is contained in:
parent
09a8c3fb60
commit
66528553a3
258
.drone.yml
258
.drone.yml
|
@ -11,25 +11,25 @@ trigger:
|
||||||
exclude: [push, pull_request]
|
exclude: [push, pull_request]
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: fedora-hugo
|
- name: fedora-hugo
|
||||||
pull: always
|
pull: always
|
||||||
image: immawanderer/fedora-hugo:latest
|
image: immawanderer/fedora-hugo:latest
|
||||||
commands:
|
commands:
|
||||||
- uname -r
|
- uname -r
|
||||||
- cat /etc/fedora-release
|
- cat /etc/fedora-release
|
||||||
|
|
||||||
- name: alpine-rsync
|
- name: alpine-rsync
|
||||||
pull: always
|
pull: always
|
||||||
image: immawanderer/alpine-rsync:latest
|
image: immawanderer/alpine-rsync:latest
|
||||||
commands:
|
commands:
|
||||||
- uname -r
|
- uname -r
|
||||||
|
|
||||||
- name: hadolint
|
- name: hadolint
|
||||||
pull: always
|
pull: always
|
||||||
image: hadolint/hadolint:2.9.1-alpine
|
image: hadolint/hadolint:2.9.1-alpine
|
||||||
commands:
|
commands:
|
||||||
- uname -r
|
- uname -r
|
||||||
- hadolint --version
|
- hadolint --version
|
||||||
|
|
||||||
---
|
---
|
||||||
kind: pipeline
|
kind: pipeline
|
||||||
|
@ -45,17 +45,17 @@ trigger:
|
||||||
event: pull_request
|
event: pull_request
|
||||||
|
|
||||||
depends_on:
|
depends_on:
|
||||||
- pull
|
- pull
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: hugo-extended
|
- name: hugo-extended
|
||||||
pull: if-not-exists
|
pull: if-not-exists
|
||||||
image: immawanderer/fedora-hugo:latest
|
image: immawanderer/fedora-hugo:latest
|
||||||
commands:
|
commands:
|
||||||
- git submodule init
|
- git submodule init
|
||||||
- git submodule update
|
- git submodule update
|
||||||
- hugo version
|
- hugo version
|
||||||
- hugo --gc=true --minify
|
- hugo --gc=true --minify
|
||||||
|
|
||||||
---
|
---
|
||||||
kind: pipeline
|
kind: pipeline
|
||||||
|
@ -71,31 +71,31 @@ trigger:
|
||||||
event: pull_request
|
event: pull_request
|
||||||
|
|
||||||
depends_on:
|
depends_on:
|
||||||
- build
|
- build
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: hadolint
|
- name: hadolint
|
||||||
image: hadolint/hadolint:v2.9.1-alpine
|
image: hadolint/hadolint:v2.9.1-alpine
|
||||||
commands:
|
commands:
|
||||||
- hadolint --version
|
- hadolint --version
|
||||||
- hadolint Dockerfile
|
- hadolint Dockerfile
|
||||||
|
|
||||||
- name: build
|
- name: build
|
||||||
pull: always
|
pull: always
|
||||||
image: tmaier/docker-compose:latest
|
image: tmaier/docker-compose:latest
|
||||||
volumes:
|
volumes:
|
||||||
- name: s
|
- name: s
|
||||||
path: /var/run/docker.sock
|
path: /var/run/docker.sock
|
||||||
environment:
|
environment:
|
||||||
COMPOSE_DOCKER_CLI_BUILD: 1
|
COMPOSE_DOCKER_CLI_BUILD: 1
|
||||||
DOCKER_BUILDKIT: 1
|
DOCKER_BUILDKIT: 1
|
||||||
commands:
|
commands:
|
||||||
- docker-compose build --no-cache --pull
|
- docker-compose build --no-cache --pull
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
- name: s
|
- name: s
|
||||||
host:
|
host:
|
||||||
path: /var/run/docker.sock
|
path: /var/run/docker.sock
|
||||||
|
|
||||||
|
|
||||||
---
|
---
|
||||||
|
@ -109,44 +109,44 @@ platform:
|
||||||
|
|
||||||
trigger:
|
trigger:
|
||||||
branch:
|
branch:
|
||||||
- testing
|
- testing
|
||||||
event:
|
event:
|
||||||
exclude: [pull_request, tag]
|
exclude: [pull_request, tag]
|
||||||
|
|
||||||
depends_on:
|
depends_on:
|
||||||
- build
|
- build
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: hugo-extended
|
- name: hugo-extended
|
||||||
pull: if-not-exists
|
pull: if-not-exists
|
||||||
image: immawanderer/fedora-hugo:latest
|
image: immawanderer/fedora-hugo:latest
|
||||||
commands:
|
commands:
|
||||||
- git submodule init
|
- git submodule init
|
||||||
- git submodule update
|
- git submodule update
|
||||||
- hugo version
|
- hugo version
|
||||||
- hugo --gc=true --minify
|
- hugo --gc=true --minify
|
||||||
|
|
||||||
- name: deploy
|
- name: deploy
|
||||||
pull: if-not-exists
|
pull: if-not-exists
|
||||||
image: immawanderer/alpine-rsync:latest
|
image: immawanderer/alpine-rsync:latest
|
||||||
when:
|
when:
|
||||||
status:
|
status:
|
||||||
- success
|
- success
|
||||||
branch:
|
branch:
|
||||||
- testing
|
- testing
|
||||||
depends_on:
|
depends_on:
|
||||||
- hugo-extended
|
- hugo-extended
|
||||||
environment:
|
environment:
|
||||||
OL:
|
OL:
|
||||||
from_secret: hugo_user
|
from_secret: hugo_user
|
||||||
OL_P:
|
OL_P:
|
||||||
from_secret: hugo_passwd
|
from_secret: hugo_passwd
|
||||||
OL_D:
|
OL_D:
|
||||||
from_secret: hugo_dir
|
from_secret: hugo_dir
|
||||||
commands:
|
commands:
|
||||||
- echo $OL_P > nupass
|
- echo $OL_P > nupass
|
||||||
- export RSYNC_RSH='sshpass -f ./nupass ssh -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null'
|
- export RSYNC_RSH='sshpass -f ./nupass ssh -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null'
|
||||||
- rsync -av --delete --chown $OL public/ $OL@dotya.ml:$OL_D
|
- rsync -av --delete --chown $OL public/ $OL@dotya.ml:$OL_D
|
||||||
|
|
||||||
|
|
||||||
---
|
---
|
||||||
|
@ -160,7 +160,7 @@ platform:
|
||||||
|
|
||||||
trigger:
|
trigger:
|
||||||
branch:
|
branch:
|
||||||
- master
|
- master
|
||||||
event:
|
event:
|
||||||
exclude: [pull_request, tag]
|
exclude: [pull_request, tag]
|
||||||
|
|
||||||
|
@ -173,58 +173,58 @@ node:
|
||||||
r: main
|
r: main
|
||||||
|
|
||||||
depends_on:
|
depends_on:
|
||||||
- build
|
- build
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: hugo-extended
|
- name: hugo-extended
|
||||||
pull: if-not-exists
|
pull: if-not-exists
|
||||||
image: immawanderer/fedora-hugo:latest
|
image: immawanderer/fedora-hugo:latest
|
||||||
commands:
|
commands:
|
||||||
- git submodule init
|
- git submodule init
|
||||||
- git submodule update
|
- git submodule update
|
||||||
- hugo version
|
- hugo version
|
||||||
- hugo --gc=true --minify
|
- hugo --gc=true --minify
|
||||||
|
|
||||||
- name: rm-intermediate
|
- name: rm-intermediate
|
||||||
pull: if-not-exists
|
pull: if-not-exists
|
||||||
image: immawanderer/fedora-hugo:latest
|
image: immawanderer/fedora-hugo:latest
|
||||||
depends_on:
|
depends_on:
|
||||||
- hugo-extended
|
- hugo-extended
|
||||||
commands:
|
commands:
|
||||||
- rm -rf ./public
|
- rm -rf ./public
|
||||||
|
|
||||||
- name: build
|
- name: build
|
||||||
pull: always
|
pull: always
|
||||||
image: tmaier/docker-compose:latest
|
image: tmaier/docker-compose:latest
|
||||||
depends_on:
|
depends_on:
|
||||||
- rm-intermediate
|
- rm-intermediate
|
||||||
volumes:
|
volumes:
|
||||||
- name: s
|
- name: s
|
||||||
path: /var/run/docker.sock
|
path: /var/run/docker.sock
|
||||||
commands:
|
commands:
|
||||||
- docker-compose build --no-cache
|
- docker-compose build --no-cache
|
||||||
when:
|
when:
|
||||||
branch: master
|
branch: master
|
||||||
status: success
|
status: success
|
||||||
|
|
||||||
- name: deploy
|
- name: deploy
|
||||||
pull: always
|
pull: always
|
||||||
image: tmaier/docker-compose:latest
|
image: tmaier/docker-compose:latest
|
||||||
depends_on:
|
depends_on:
|
||||||
- build
|
- build
|
||||||
volumes:
|
volumes:
|
||||||
- name: s
|
- name: s
|
||||||
path: /var/run/docker.sock
|
path: /var/run/docker.sock
|
||||||
commands:
|
commands:
|
||||||
- docker-compose -p ${DRONE_REPO_NAME} up -d --remove-orphans --scale homepage=4
|
- docker-compose -p ${DRONE_REPO_NAME} up -d --remove-orphans --scale homepage=4
|
||||||
when:
|
when:
|
||||||
branch: master
|
branch: master
|
||||||
status: success
|
status: success
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
- name: s
|
- name: s
|
||||||
host:
|
host:
|
||||||
path: /var/run/docker.sock
|
path: /var/run/docker.sock
|
||||||
|
|
||||||
|
|
||||||
---
|
---
|
||||||
|
@ -240,14 +240,14 @@ clone:
|
||||||
|
|
||||||
trigger:
|
trigger:
|
||||||
branch:
|
branch:
|
||||||
- master
|
- master
|
||||||
- testing
|
- testing
|
||||||
event:
|
event:
|
||||||
- push
|
- push
|
||||||
- tag
|
- tag
|
||||||
status:
|
status:
|
||||||
- success
|
- success
|
||||||
- failure
|
- failure
|
||||||
|
|
||||||
depends_on: [deploy, deploy-staging]
|
depends_on: [deploy, deploy-staging]
|
||||||
|
|
||||||
|
|
|
@ -1 +1,2 @@
|
||||||
|
---
|
||||||
ignored:
|
ignored:
|
||||||
|
|
Loading…
Reference in New Issue