File tree 3 files changed +11
-8
lines changed
3 files changed +11
-8
lines changed Original file line number Diff line number Diff line change 19
19
push :
20
20
branches :
21
21
- ' master'
22
+ - ' staging'
22
23
- ' bifrost-*'
23
24
tags :
24
25
- ' v*'
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ set -euo pipefail
18
18
if [[ $# -lt 1 ]] ; then
19
19
echo ' At least 1 arg required.'
20
20
echo ' Usage:'
21
- echo ' ./push -docker-tags.sh <build number> [git commit sha1] [git branch name] [git tag name]'
21
+ echo ' ./get -docker-tags.sh <build number> [git commit sha1] [git branch name] [git tag name]'
22
22
exit 1
23
23
fi
24
24
@@ -50,9 +50,9 @@ elif [[ $GIT_BRANCH =~ ^bifrost-.* ]]; then
50
50
branch=$( echo " $GIT_BRANCH " | tr ' /' ' -' | tr --delete --complement ' [:alnum:]-' )
51
51
echoImageName " ${branch} -${BUILD_NUM} -${GIT_SHA1_SHORT} "
52
52
53
- elif [ " $GIT_BRANCH " = " master" ]; then
54
- echoImageName " master -${BUILD_NUM} -${GIT_SHA1_SHORT} "
55
- echoImageName " master -latest"
53
+ elif [ " $GIT_BRANCH " = " master" ] || [ " $GIT_BRANCH " = " staging " ] ; then
54
+ echoImageName " ${GIT_BRANCH} -${BUILD_NUM} -${GIT_SHA1_SHORT} "
55
+ echoImageName " ${GIT_BRANCH} -latest"
56
56
57
57
else
58
58
echo " Nothing to do. No docker tag defined for branch: $GIT_BRANCH , tag: $GIT_TAG "
Original file line number Diff line number Diff line change 1
1
#! /usr/bin/env bash
2
-
2
+ #
3
+ # TODO: this script is legacy, use get-docker-tags.sh instead.
4
+ #
3
5
# push-docker-tags.sh
4
6
#
5
7
# Run from ci to tag images based on the current branch or tag name.
@@ -68,9 +70,9 @@ elif [[ $GIT_BRANCH =~ ^bifrost-.* ]]; then
68
70
branch=$( echo " $GIT_BRANCH " | tr ' /' ' -' | tr --delete --complement ' [:alnum:]-' )
69
71
pushTag " ${branch} -${BUILD_NUM} -${GIT_SHA1_SHORT} "
70
72
71
- elif [ " $GIT_BRANCH " = " master" ]; then
72
- pushTag " master -${BUILD_NUM} -${GIT_SHA1_SHORT} "
73
- pushTag " master -latest"
73
+ elif [ " $GIT_BRANCH " = " master" ] || [ " $GIT_BRANCH " = " staging " ] ; then
74
+ pushTag " ${GIT_BRANCH} -${BUILD_NUM} -${GIT_SHA1_SHORT} "
75
+ pushTag " ${GIT_BRANCH} -latest"
74
76
75
77
else
76
78
echo " Nothing to do. No docker tag defined for branch: $GIT_BRANCH , tag: $GIT_TAG "
You can’t perform that action at this time.
0 commit comments