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
1 changed files with 20 additions and 19 deletions

View File

@ -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