ci: release process config

This commit is contained in:
Alexander Zobnin
2019-03-05 14:43:23 +03:00
parent b4a3524115
commit 872d92d37f
2 changed files with 40 additions and 0 deletions

View File

@@ -6,11 +6,17 @@ aliases:
branches:
ignore:
- master
- /^release-[0-9]+(\.[0-9]+){2}(-.+|[^-.]*)$/
- docs
- gh-pages
- &filter-only-master
branches:
only: master
- &filter-only-release
branches:
ignore: /.*/
tags:
only: /^v[0-9]+(\.[0-9]+){2}(-.+|[^-.]*)$/
- &filter-docs
branches:
only: docs
@@ -87,6 +93,25 @@ jobs:
- store_artifacts:
path: /tmp/circleci-test-results
make-release:
working_directory: ~/alexanderzobnin/grafana-zabbix
docker:
- image: circleci/node:8
steps:
- checkout
- restore_cache:
keys:
- dependency-cache-{{ checksum "yarn.lock" }}
- run:
name: yarn install
command: 'yarn install --pure-lockfile --no-progress'
no_output_timeout: 15m
- save_cache:
key: dependency-cache-{{ checksum "yarn.lock" }}
paths:
- ./node_modules
- run: ./.circleci/make-release.sh
build-docs:
working_directory: ~/grafana-zabbix
docker:
@@ -144,6 +169,21 @@ workflows:
- test:
filters: *filter-not-release-or-master
build-release:
jobs:
- build:
filters: *filter-only-release
- lint:
filters: *filter-only-release
- test:
filters: *filter-only-release
- make-release:
requires:
- build
- lint
- test
filters: *filter-only-release
build-docs:
jobs:
- build-docs: