From bffe951be46970305af5b92895495b1089fba636 Mon Sep 17 00:00:00 2001 From: surtur Date: Tue, 22 Mar 2022 22:58:28 +0100 Subject: [PATCH] ci: fix yaml formatting --- .drone.yml | 112 ++++++++++++++++++++++++++--------------------------- 1 file changed, 56 insertions(+), 56 deletions(-) diff --git a/.drone.yml b/.drone.yml index ca25473..450c89f 100644 --- a/.drone.yml +++ b/.drone.yml @@ -8,61 +8,61 @@ platform: arch: amd64 steps: -- name: hadolint - pull: always - image: hadolint/hadolint:v2.8.0-alpine - commands: - - hadolint --version - - hadolint Dockerfile - when: - ref: - - refs/heads/development - - "refs/heads/feature-**" - - "refs/pull/**" - - "refs/tags/**" - event: - exclude: [cron] + - name: hadolint + pull: always + image: hadolint/hadolint:v2.8.0-alpine + commands: + - hadolint --version + - hadolint Dockerfile + when: + ref: + - refs/heads/development + - "refs/heads/feature-**" + - "refs/pull/**" + - "refs/tags/**" + event: + exclude: [cron] -- name: kaniko-build - pull: always - image: immawanderer/drone-kaniko:linux-amd64 - settings: - dockerfile: Dockerfile - context: . - args: - - BUILD_DATE="$(date -u +"%Y-%m-%dT%H:%M:%SZ")" - - VCS_REF=${DRONE_COMMIT_SHA:0:7} - when: - ref: - - refs/heads/development - - "refs/heads/feature-**" - - "refs/pull/**" - - "refs/tags/**" - event: - exclude: [cron] + - name: kaniko-build + pull: always + image: immawanderer/drone-kaniko:linux-amd64 + settings: + dockerfile: Dockerfile + context: . + args: + - BUILD_DATE="$(date -u +"%Y-%m-%dT%H:%M:%SZ")" + - VCS_REF=${DRONE_COMMIT_SHA:0:7} + when: + ref: + - refs/heads/development + - "refs/heads/feature-**" + - "refs/pull/**" + - "refs/tags/**" + event: + exclude: [cron] -- name: kaniko-publish - pull: always - image: immawanderer/drone-kaniko:linux-amd64 - settings: - dockerfile: Dockerfile - context: . - args: - - BUILD_DATE="$(date -u +"%Y-%m-%dT%H:%M:%SZ")" - - VCS_REF=${DRONE_COMMIT_SHA:0:7} - tags: - - latest - - linux-amd64 - - ${DRONE_COMMIT_SHA:0:8} - repo: immawanderer/fedora-distcc - username: - from_secret: docker_username - password: - from_secret: docker_password - when: - ref: - - refs/heads/development - event: - exclude: [pull_request, tag] - trigger: - event: [push, pull_request, cron, tag] + - name: kaniko-publish + pull: always + image: immawanderer/drone-kaniko:linux-amd64 + settings: + dockerfile: Dockerfile + context: . + args: + - BUILD_DATE="$(date -u +"%Y-%m-%dT%H:%M:%SZ")" + - VCS_REF=${DRONE_COMMIT_SHA:0:7} + tags: + - latest + - linux-amd64 + - ${DRONE_COMMIT_SHA:0:8} + repo: immawanderer/fedora-distcc + username: + from_secret: docker_username + password: + from_secret: docker_password + when: + ref: + - refs/heads/development + event: + exclude: [pull_request, tag] + trigger: + event: [push, pull_request, cron, tag]