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