From d80e970117bcb6208a42aff6c3b91a01003db8bb Mon Sep 17 00:00:00 2001 From: realaravinth Date: Tue, 16 Aug 2022 16:38:50 +0530 Subject: [PATCH] feat: conditional deploy pipeline --- .woodpecker.yml | 39 ++++++++++++++++++++------------------- 1 file changed, 20 insertions(+), 19 deletions(-) diff --git a/.woodpecker.yml b/.woodpecker.yml index 83e7226f..680207e8 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -1,22 +1,23 @@ pipeline: - buildfrontend: - image: node - commands: - - yarn install - - yarn test - - yarn test:postcss - - yarn test:sdk - - yarn build + buildfrontend: + image: node + commands: + - yarn install + - yarn test + - yarn test:postcss + - yarn test:sdk + - yarn build - deploy: - image: node - commands: - - make ci-deploy - secrets: [ gitea_write_deploy_key, librepages_deploy_secret ] - branches: - include: [ master ] + deploy: + image: node + when: + event: push + branch: master + commands: + - make ci-deploy + secrets: [gitea_write_deploy_key, librepages_deploy_secret] - lint-frontend: - image: node - commands: - - yarn lint-ci + lint-frontend: + image: node + commands: + - yarn lint-ci