New release process

This commit is contained in:
Alexander Zobnin
2020-06-04 12:52:56 +03:00
parent a416bcfc4f
commit ec48fa0e55
8 changed files with 205 additions and 3 deletions

View File

@@ -120,6 +120,43 @@ jobs:
- store_artifacts:
path: /tmp/circleci-test-results
make-github-release:
working_directory: ~/alexanderzobnin/grafana-zabbix
docker:
- image: circleci/golang:1.13-node
environment:
CI_GIT_USER: CircleCI
CI_GIT_EMAIL: ci@grafana.com
steps:
- checkout
- restore_cache:
keys:
- dependency-cache-npm-{{ checksum "yarn.lock" }}
- restore_cache:
keys:
- dependency-cache-go-{{ checksum "go.sum" }}
- run:
name: Install Dependencies
command: 'make install'
no_output_timeout: 15m
- save_cache:
key: dependency-cache-npm-{{ checksum "yarn.lock" }}
paths:
- ./node_modules
- save_cache:
key: dependency-cache-go-{{ checksum "go.sum" }}
paths:
- ./vendor
- /go/pkg/mod
- run:
name: Build plugin for all platforms
command: 'make dist'
no_output_timeout: 15m
- run:
name: Package plugin
command: './.circleci/make-package.sh'
no_output_timeout: 15m
make-release:
working_directory: ~/alexanderzobnin/grafana-zabbix
docker:
@@ -233,7 +270,7 @@ workflows:
filters: *filter-only-release
- test:
filters: *filter-only-release
- make-release:
- make-github-release:
requires:
- build
- codespell