Skip to content

Commit

Permalink
Ship the master and input-contract branches.
Browse files Browse the repository at this point in the history
  • Loading branch information
Luke Sneeringer committed Feb 7, 2019
1 parent 80881c3 commit dbca276
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@ workflows:
- compile
filters:
branches:
ignore: /.*/
only:
- input-contract
- master
tags:
only: /^\d+\.\d+\.\d+$/
jobs:
Expand Down Expand Up @@ -69,11 +71,11 @@ jobs:
docker tag gcr.io/gapic-images/api-common-protos:latest gcr.io/gapic-images/api-common-protos:$MAJOR.$MINOR
docker tag gcr.io/gapic-images/api-common-protos:latest gcr.io/gapic-images/api-common-protos:$MAJOR
docker push gcr.io/gapic-images/api-common-protos:$MAJOR.$MINOR.$PATCH
if [ "$CIRCLE_BRANCH" == "master" ]; then
docker push gcr.io/gapic-images/api-common-protos:$MAJOR.$MINOR
docker push gcr.io/gapic-images/api-common-protos:$MAJOR
fi
fi
if [ "$CIRCLE_BRANCH" == "master" ]; then
docker push gcr.io/gapic-images/api-common-protos:$MAJOR.$MINOR
docker push gcr.io/gapic-images/api-common-protos:$MAJOR
docker push gcr.io/gapic-images/api-common-protos:latest
elif [ "$CIRCLE_BRANCH" == "master" ]; then
docker push gcr.io/gapic-images/api-common-protos:latest
elif [ "$CIRCLE_BRANCH" == "input-contract" ]; then
docker push gcr.io/gapic-images/api-common-protos:beta
fi

0 comments on commit dbca276

Please sign in to comment.