Update CI setup

This commit is contained in:
Abhilash Raj
2021-09-17 19:55:49 +00:00
committed by GitHub
parent 9fc4fbb12a
commit a5c591226d
5 changed files with 19 additions and 62 deletions

View File

@@ -34,6 +34,7 @@ USER = 'maxking'
TAG_VAR = 'CIRCLE_TAG'
BRANCH_VAR = 'CIRCLE_BRANCH'
PRIMARY_BRANCH = 'main'
ROLLING_VAR = "BUILD_ROLLING"
def tag(original, final):
@@ -112,8 +113,7 @@ def main():
if img_tag.startswith('v'):
img_tag = img_tag[1:]
is_release = True
elif os.environ.get(BRANCH_VAR) == PRIMARY_BRANCH:
elif os.environ.get(BRANCH_VAR) == PRIMARY_BRANCH and os.environ.get(ROLLING_VAR) == "yes":
img_tag = 'rolling'
else:
print('Not running on {PRIMARY_BRANCH} branch or Git tag so not publishing...'.format(