Skip to content

Commit

Permalink
ci: release process config
Browse files Browse the repository at this point in the history
  • Loading branch information
alexanderzobnin committed Mar 5, 2019
1 parent b4a3524 commit 872d92d
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -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:
Expand Down
File renamed without changes.

0 comments on commit 872d92d

Please sign in to comment.