Added when conditions
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
This commit is contained in:
parent
78b51a7257
commit
ba806ec67f
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user