From 9f723f40f80644427802c0d717d5f2f482759d90 Mon Sep 17 00:00:00 2001 From: Matt Reeves Date: Tue, 13 Feb 2024 05:08:13 +0000 Subject: [PATCH] Update .drone.yml --- .drone.yml | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/.drone.yml b/.drone.yml index 628679f..df1f2d7 100644 --- a/.drone.yml +++ b/.drone.yml @@ -2,8 +2,13 @@ kind: pipeline name: lint steps: -- name: lint-docker-compose +{{ range .Files }} +{{ if eq .Ext "yml" }} +- name: lint-docker-compose-${{ trimPrefix .Path "./" }} image: docker/compose:1.29.2 commands: - - docker-compose -f docker-compose.yml config --quiet - - docker-compose -f docker-compose.yml config + - cd $(dirname $0) + - docker-compose -f ${{ .Path }} config --quiet + - docker-compose -f ${{ .Path }} config +{{ end }} +{{ end }}