Skip to content

Commit 0c0454d

Browse files
authored
Add approval step to CircleCI (#20)
1 parent afeb169 commit 0c0454d

File tree

2 files changed

+18
-25
lines changed

2 files changed

+18
-25
lines changed

.circleci/config.yml

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,14 @@ jobs:
1212
- run:
1313
name: Go Tests
1414
command: make test-go
15-
release-test:
15+
test-release:
1616
docker:
1717
- image: circleci/golang:1.11.5
1818
steps:
1919
- checkout
2020
- run:
2121
name: Version Test
22-
command: if build/is-release-branch.sh $CIRCLE_BRANCH; then make find-missing-version; fi
22+
command: make find-missing-version
2323
deploy:
2424
docker:
2525
- image: circleci/golang:1.11.5
@@ -37,11 +37,25 @@ workflows:
3737
build_and_test:
3838
jobs:
3939
- test
40-
- release-test
40+
- test-release:
41+
filters:
42+
branches:
43+
only:
44+
- /^[0-9]\.[0-9]$/
45+
- deploy-approval:
46+
type: approval
47+
requires:
48+
- test
49+
- test-release
50+
filters:
51+
branches:
52+
only:
53+
- /^[0-9]\.[0-9]$/
4154
- deploy:
4255
requires:
43-
- release-test
4456
- test
57+
- test-release
58+
- deploy-approval
4559
filters:
4660
branches:
4761
only:

build/is-release-branch.sh

Lines changed: 0 additions & 21 deletions
This file was deleted.

0 commit comments

Comments
 (0)