From ba806ec67fdab7704c59fae88a9d91d033443c65 Mon Sep 17 00:00:00 2001 From: H4CK3R-01 Date: Tue, 14 Mar 2023 07:09:30 +0100 Subject: [PATCH] Added when conditions --- .woodpecker.yml | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/.woodpecker.yml b/.woodpecker.yml index 890e690..1b343f0 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -3,9 +3,9 @@ pipeline: image: golang commands: - echo -n "${CI_COMMIT_BRANCH//\//-}-${CI_COMMIT_SHA:0:8}, latest" > .tags - #when: - # path: [ "frontend/**", "backend/**" ] - # event: push + when: + path: [ "frontend/**", "backend/**" ] + event: push # -------------------------------------- Backend -------------------------------------- @@ -22,9 +22,9 @@ pipeline: from_secret: registry dockerfile: Dockerfile.Backend platforms: linux/amd64 - #when: - # path: "backend/**" - # event: push + when: + path: "backend/**" + event: push # -------------------------------------- Frontend -------------------------------------- @@ -41,8 +41,8 @@ pipeline: from_secret: registry dockerfile: Dockerfile.Frontend platforms: linux/amd64 - #when: - # path: "frontend/**" - # event: push + when: + path: "frontend/**" + event: push branches: main