File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -43,6 +43,10 @@ build:
43
43
mkdir /operator
44
44
cp -R src/main/scripts/* /operator/
45
45
cp target/weblogic-kubernetes-operator-0.1.0-alpha-SNAPSHOT.jar /operator/weblogic-kubernetes-operator.jar
46
+ export IMAGE_TAG_OPERATOR="${WERCKER_GIT_BRANCH//[_/]/-}"
47
+ if [ "$IMAGE_TAG_OPERATOR" = "master" ]; then
48
+ export IMAGE_TAG_OPERATOR = "latest"
49
+ fi
46
50
- script :
47
51
name : Remove things we do not want in the Docker image in order to reduce size of image
48
52
code : |
55
59
password : $QUAY_PASSWORD
56
60
email : $QUAY_EMAIL
57
61
repository : quay.io/markxnelson/weblogic-kubernetes-operator
58
- tag : ${WERCKER_GIT_BRANCH//[_/]/-}
62
+ tag : $IMAGE_TAG_OPERATOR
59
63
working-dir : " /operator"
60
64
cmd : " operator.sh"
61
65
env : " PATH=$PATH:/operator"
@@ -143,12 +147,15 @@ integration-test:
143
147
144
148
export IMAGE_NAME_OPERATOR="quay.io/markxnelson/weblogic-kubernetes-operator"
145
149
export IMAGE_TAG_OPERATOR="${WERCKER_GIT_BRANCH//[_/]/-}"
150
+ if [ "$IMAGE_TAG_OPERATOR" = "master" ]; then
151
+ export IMAGE_TAG_OPERATOR = "latest"
152
+ fi
146
153
export IMAGE_PULL_POLICY_OPERATOR="IfNotPresent"
147
154
export IMAGE_PULL_SECRET_OPERATOR="quay-io"
148
155
export IMAGE_PULL_SECRET_WEBLOGIC="docker-store"
149
156
150
157
echo "Integration test suite against the test image which is:"
151
- echo "$IMAGE_NAME:$IMAGE_TAG "
158
+ echo "$IMAGE_NAME_OPERATOR:$IMAGE_TAG_OPERATOR "
152
159
153
160
# integration tests
154
161
$WERCKER_SOURCE_DIR/src/integration-tests/bash/run.sh
You can’t perform that action at this time.
0 commit comments