feat: conditional deploy pipeline

This commit is contained in:
Aravinth Manivannan 2022-08-16 16:38:50 +05:30
parent 6db5f34ac2
commit d80e970117
Signed by untrusted user: realaravinth
GPG key ID: AD9F0F08E855ED88

View file

@ -1,22 +1,23 @@
pipeline: pipeline:
buildfrontend: buildfrontend:
image: node image: node
commands: commands:
- yarn install - yarn install
- yarn test - yarn test
- yarn test:postcss - yarn test:postcss
- yarn test:sdk - yarn test:sdk
- yarn build - yarn build
deploy: deploy:
image: node image: node
commands: when:
- make ci-deploy event: push
secrets: [ gitea_write_deploy_key, librepages_deploy_secret ] branch: master
branches: commands:
include: [ master ] - make ci-deploy
secrets: [gitea_write_deploy_key, librepages_deploy_secret]
lint-frontend: lint-frontend:
image: node image: node
commands: commands:
- yarn lint-ci - yarn lint-ci