Skip to content

Commit 5e4dfb0

Browse files
committed
Use repository variables for wercker
1 parent 18808bf commit 5e4dfb0

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

wercker.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ build:
4545
cp -R src/scripts/* /operator/
4646
cp operator/target/weblogic-kubernetes-operator-0.2.jar /operator/weblogic-kubernetes-operator.jar
4747
cp operator/target/lib/*.jar /operator/lib/
48-
export IMAGE_TAG_OPERATOR="${WERCKER_GIT_BRANCH//[_\/]/-}"
48+
export IMAGE_TAG_OPERATOR="${IMAGE_TAG_OPERATOR:-${WERCKER_GIT_BRANCH//[_\/]/-}}"
4949
if [ "$IMAGE_TAG_OPERATOR" = "master" ]; then
5050
export IMAGE_TAG_OPERATOR="latest"
5151
fi
@@ -59,10 +59,10 @@ build:
5959
# push the image to quay.io using the GIT branch as the tag
6060
# this image needs to be available to the integration-test pipeline for testing
6161
- internal/docker-push:
62-
username: $QUAY_USERNAME
63-
password: $QUAY_PASSWORD
64-
email: $QUAY_EMAIL
65-
repository: quay.io/markxnelson/weblogic-kubernetes-operator
62+
username: $REPO_USERNAME
63+
password: $REPO_PASSWORD
64+
email: $REPO_EMAIL
65+
repository: $REPO_LOCATION
6666
tag: $IMAGE_TAG_OPERATOR
6767
working-dir: "/operator"
6868
cmd: "operator.sh"

0 commit comments

Comments
 (0)