Redo release automation via CircleCI

Resolves #91
This commit is contained in:
Yusuke KUOKA 2018-04-09 19:38:58 +09:00
parent d380b8d550
commit 35cb4d4032
1 changed files with 19 additions and 7 deletions

View File

@ -73,13 +73,19 @@ jobs:
make integration make integration
# GITHUB_TOKEN env var must be setup in circleci console # GITHUB_TOKEN env var must be setup in circleci console
deployment:
release: release:
tag: /v.*/ docker:
commands: - image: circleci/golang:1.7
- docker login -e="." -u="$DOCKER_USER" -p="$DOCKER_PASS" quay.io working_directory: /go/src/github.com/roboll/helmfile
- cd "$WORK" && make tools steps:
- cd "$WORK" && BUILD_URL="$CIRCLE_BUILD_URL" make push release - checkout
- setup_remote_docker
- run:
command: |
docker login -u="$DOCKER_USER" -p="$DOCKER_PASS" quay.io
make tools
BUILD_URL="$CIRCLE_BUILD_URL" make push release
workflows: workflows:
version: 2 version: 2
@ -94,4 +100,10 @@ workflows:
branches: branches:
only: only:
- master - master
- /pull.*/ - /pull.*/
- release:
filters:
branches:
ignore: /.*/
tags:
only: /v.*/