Skip to content

Commit 2aa9dfc

Browse files
committed
Use repository variables for wercker
1 parent 13774dd commit 2aa9dfc

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
@@ -57,10 +57,10 @@ build:
5757
# push the image to quay.io using the GIT branch as the tag
5858
# this image needs to be available to the integration-test pipeline for testing
5959
- internal/docker-push:
60-
username: $QUAY_USERNAME
61-
password: $QUAY_PASSWORD
62-
email: $QUAY_EMAIL
63-
repository: quay.io/markxnelson/weblogic-kubernetes-operator
60+
username: $REPO_USERNAME
61+
password: $REPO_PASSWORD
62+
email: $REPO_EMAIL
63+
repository: $REPO_LOCATION
6464
tag: $IMAGE_TAG_OPERATOR
6565
working-dir: "/operator"
6666
cmd: "operator.sh"

0 commit comments

Comments
 (0)