From a5a0af6c21e85b7a75992361bc9e0b51e356b77a Mon Sep 17 00:00:00 2001 From: surtur Date: Tue, 22 Mar 2022 16:16:33 +0100 Subject: [PATCH] ci: fix yaml formatting --- .drone.yml | 123 ++++++++++++++++++++++++++--------------------------- 1 file changed, 61 insertions(+), 62 deletions(-) diff --git a/.drone.yml b/.drone.yml index 801780a..de66b8a 100644 --- a/.drone.yml +++ b/.drone.yml @@ -11,12 +11,12 @@ trigger: exclude: [push, pull_request] steps: -- name: fedora-hugo - pull: always - image: immawanderer/fedora-hugo:latest - commands: - - uname -r - - cat /etc/fedora-release + - name: fedora-hugo + pull: always + image: immawanderer/fedora-hugo:latest + commands: + - uname -r + - cat /etc/fedora-release --- kind: pipeline @@ -32,17 +32,17 @@ trigger: event: [push, pull_request] depends_on: -- pull + - pull steps: -- name: hugo-extended - pull: if-not-exists - image: immawanderer/fedora-hugo:latest - commands: - - git submodule init - - git submodule update - - hugo version - - hugo --gc=true --minify + - name: hugo-extended + pull: if-not-exists + image: immawanderer/fedora-hugo:latest + commands: + - git submodule init + - git submodule update + - hugo version + - hugo --gc=true --minify --- kind: pipeline @@ -55,7 +55,7 @@ platform: trigger: branch: - - master + - master event: exclude: [pull_request, tag] @@ -68,58 +68,58 @@ node: r: main depends_on: -- build + - build steps: -- name: hugo-extended - pull: if-not-exists - image: immawanderer/fedora-hugo:latest - commands: - - git submodule init - - git submodule update - - hugo version - - hugo --gc=true --minify + - name: hugo-extended + pull: if-not-exists + image: immawanderer/fedora-hugo:latest + commands: + - git submodule init + - git submodule update + - hugo version + - hugo --gc=true --minify -- name: rm-intermediate - pull: if-not-exists - image: immawanderer/fedora-hugo:latest - depends_on: - - hugo-extended - commands: - - rm -rf ./public + - name: rm-intermediate + pull: if-not-exists + image: immawanderer/fedora-hugo:latest + depends_on: + - hugo-extended + commands: + - rm -rf ./public -- name: build - pull: always - image: tmaier/docker-compose:latest - depends_on: - - rm-intermediate - volumes: - - name: s - path: /var/run/docker.sock - commands: - - docker-compose build --no-cache - when: - branch: master - status: success + - name: build + pull: always + image: tmaier/docker-compose:latest + depends_on: + - rm-intermediate + volumes: + - name: s + path: /var/run/docker.sock + commands: + - docker-compose build --no-cache + when: + branch: master + status: success -- name: deploy - pull: always - image: tmaier/docker-compose:latest - depends_on: - - build - volumes: - - name: s - path: /var/run/docker.sock - commands: - - docker-compose -p ${DRONE_REPO_NAME} up -d --remove-orphans - when: - branch: master - status: success + - name: deploy + pull: always + image: tmaier/docker-compose:latest + depends_on: + - build + volumes: + - name: s + path: /var/run/docker.sock + commands: + - docker-compose -p ${DRONE_REPO_NAME} up -d --remove-orphans + when: + branch: master + status: success volumes: -- name: s - host: - path: /var/run/docker.sock + - name: s + host: + path: /var/run/docker.sock --- kind: pipeline @@ -160,4 +160,3 @@ steps: from_secret: discord_webhook_id webhook_token: from_secret: discord_webhook_token -