Use STABLE_ prefixes for bazel workspace vars

This ensures that we rebuild when they change.
This commit is contained in:
Justin Santa Barbara 2018-06-03 13:11:41 -07:00
parent 6741158c97
commit a9111e00ac
3 changed files with 4 additions and 4 deletions

View File

@ -126,7 +126,7 @@ go_binary(
embed = [":go_default_library"],
visibility = ["//visibility:public"],
x_defs = {
"k8s.io/kops.Version": "{KOPS_VERSION}", # keep
"k8s.io/kops.Version": "{STABLE_KOPS_VERSION}", # keep
"k8s.io/kops.GitVersion": "{BUILD_SCM_REVISION}", # keep
},
)

View File

@ -61,7 +61,7 @@ container_image(
container_bundle(
name = "protokube",
images = {
"protokube:{PROTOKUBE_TAG}": "protokube-image",
"protokube:{STABLE_PROTOKUBE_TAG}": "protokube-image",
},
stamp = True,
)

View File

@ -58,8 +58,8 @@ if [[ -z "${VERSION}" ]]; then
fi
fi
echo "KOPS_VERSION ${VERSION}"
echo "STABLE_KOPS_VERSION ${VERSION}"
PROTOKUBE_TAG=${VERSION/+/-}
echo "PROTOKUBE_TAG ${PROTOKUBE_TAG}"
echo "STABLE_PROTOKUBE_TAG ${PROTOKUBE_TAG}"