ci: fix yaml formatting
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
surtur 2022-03-22 16:16:33 +01:00
parent cdc72d6737
commit a5a0af6c21
Signed by: wanderer
GPG Key ID: 19CE1EC1D9E0486D

@ -11,12 +11,12 @@ 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
--- ---
kind: pipeline kind: pipeline
@ -32,17 +32,17 @@ trigger:
event: [push, pull_request] event: [push, 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
@ -55,7 +55,7 @@ platform:
trigger: trigger:
branch: branch:
- master - master
event: event:
exclude: [pull_request, tag] exclude: [pull_request, tag]
@ -68,58 +68,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 - docker-compose -p ${DRONE_REPO_NAME} up -d --remove-orphans
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
--- ---
kind: pipeline kind: pipeline
@ -160,4 +160,3 @@ steps:
from_secret: discord_webhook_id from_secret: discord_webhook_id
webhook_token: webhook_token:
from_secret: discord_webhook_token from_secret: discord_webhook_token