Add a formatted tag for canvas image consumers
test plan: The build passes, EXTERNAL_TAG image is pushed to starlord for consuming by portal and others fixes: CCI-307 flag = none Change-Id: I8add91566b9adcbec62691fa6197967b779e4a3c Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/232901 Reviewed-by: Derek Bender <djbender@instructure.com> Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com> QA-Review: James Butters <jbutters@instructure.com> Product-Review: Jacob Powell <spowell@instructure.com>
This commit is contained in:
parent
6f625fff51
commit
d3a1496b6c
|
@ -83,6 +83,9 @@ pipeline {
|
|||
|
||||
// e.g. canvas-lms:master when not on another branch
|
||||
MERGE_TAG = "$CANVAS_LMS_IMAGE:$GERRIT_BRANCH"
|
||||
|
||||
// e.g. canvas-lms:01.123456.78; this is for consumers like Portal 2 who want to build a patchset
|
||||
EXTERNAL_TAG = "$CANVAS_LMS_IMAGE:$NAME"
|
||||
}
|
||||
|
||||
stages {
|
||||
|
@ -227,8 +230,12 @@ pipeline {
|
|||
.
|
||||
"""
|
||||
}
|
||||
sh "docker push $PATCHSET_TAG"
|
||||
if (isPatchsetPublishable()) {
|
||||
sh 'docker tag $PATCHSET_TAG $EXTERNAL_TAG'
|
||||
sh 'docker push $EXTERNAL_TAG'
|
||||
}
|
||||
}
|
||||
sh "docker push $PATCHSET_TAG"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue