From 92cea97430522a77d7b57ab903b8a564739f8d39 Mon Sep 17 00:00:00 2001 From: David Ashby Date: Mon, 8 Jul 2024 19:24:41 -0400 Subject: [PATCH] scope when jobs run --- .woodpecker.yml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/.woodpecker.yml b/.woodpecker.yml index 8ea6a44..a20eed2 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -12,8 +12,9 @@ steps: - apk add curl - docker build . when: - branch: - exclude: ["master", "main"] + - event: push + branch: + exclude: ["main"] volumes: - /var/run/docker.sock:/var/run/docker.sock @@ -28,7 +29,8 @@ steps: - 'curl http://100.113.98.36:4000/api/update -H "Authorization: Bearer $COMPOSE_TOKEN"' secrets: [docker_username, docker_password, compose_token] when: - branch: - include: ["master", "main"] + - event: push + branch: + include: ["main"] volumes: - /var/run/docker.sock:/var/run/docker.sock