From b8c2f453e54cdbe62f775b35d949bb1ee61cd602 Mon Sep 17 00:00:00 2001 From: video-prize-ranch Date: Fri, 18 Nov 2022 11:56:19 -0500 Subject: [PATCH] Only build when branch is main [ci skip] --- .woodpecker/.build.yml | 4 +++- .woodpecker/.deploy.yml | 2 ++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.woodpecker/.build.yml b/.woodpecker/.build.yml index 002614c..7450680 100644 --- a/.woodpecker/.build.yml +++ b/.woodpecker/.build.yml @@ -11,4 +11,6 @@ pipeline: from_secret: docker_username password: from_secret: docker_password - secrets: [docker_username, docker_password] \ No newline at end of file + secrets: [docker_username, docker_password] + when: + branch: main \ No newline at end of file diff --git a/.woodpecker/.deploy.yml b/.woodpecker/.deploy.yml index a3d0f06..ad1e993 100644 --- a/.woodpecker/.deploy.yml +++ b/.woodpecker/.deploy.yml @@ -8,6 +8,8 @@ pipeline: - cd fly-cfg/rimgo - /root/.fly/bin/flyctl deploy --detach --remote-only secrets: [fly_api_token] + when: + branch: main depends_on: - build