Skip to content

Commit 87d63c0

Browse files
authored
Merge pull request googleapis#3253 from dhermes/tag-build-on-circle-2.0
Adding CircleCI 1.0 config into our 2.0 config to support tag builds.
2 parents 0cce05f + 6990b7d commit 87d63c0

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

.circleci/config.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,3 +140,15 @@ jobs:
140140
name: Push to PyPI (if this is a release tag).
141141
command: test_utils/scripts/circleci/twine_upload.sh
142142
working_directory: /var/code/gcp/
143+
144+
deployment:
145+
tag_build_for_cci2:
146+
# 1.0 style config for tag builds workaround
147+
# For context, see:
148+
# - https://discuss.circleci.com/t/build-on-tag/9864/30
149+
# - https://discuss.circleci.com/t/git-tag-deploys-in-2-0/9493/8
150+
# - https://circleci.com/gh/keybits/circulate/58#config/containers/0
151+
# See "test_utils/scripts/circleci/get_tagged_package.py" for info on REGEX
152+
tag: /(([a-z]+)-)*([0-9]+)\.([0-9]+)\.([0-9]+)/
153+
commands:
154+
- true

0 commit comments

Comments
 (0)