Skip to content

Commit 67ffea5

Browse files
author
Rami Chowdhury
committed
More fun with git and tags
1 parent 3d68ca9 commit 67ffea5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.circleci/config.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,12 +47,12 @@ jobs:
4747
4848
tag_is_on_master:
4949
docker:
50-
- image: alpine:3.10
50+
- image: alpine/git:1.0.7
5151
steps:
5252
- run:
5353
name: Check that the tag being built is on master
5454
command: |
55-
[ "$CIRCLE_BRANCH" = "master" ] && [ "" != "$CIRCLE_TAG" ]
55+
[ "" != "$CIRCLE_TAG" ] && (git branch --contains "$CIRCLE_TAG" | grep -c master)
5656
5757
# When to run which job
5858
workflows:

0 commit comments

Comments
 (0)