From 102e25c71020ae2a8457daf883ae5d319132416d Mon Sep 17 00:00:00 2001 From: Techassi Date: Mon, 15 Jun 2026 09:35:55 +0200 Subject: [PATCH] fix(opa): Use $PRODUCT_VERSION instead of $PRODUCT This previsouly only worked by accident, because $PRODUCT expanded to nothing/an empty string and resulted in the complete 'patches' folder to be copied into the image. patchale was then able to properly patch OPA. #1524 added check=error=true to the Dockerfile which likely causes the current failures. This commit fixes the error by using the proper variable. --- opa/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/opa/Dockerfile b/opa/Dockerfile index 9f424bc58..711b569df 100644 --- a/opa/Dockerfile +++ b/opa/Dockerfile @@ -66,7 +66,7 @@ COPY --from=golang-image /usr/local/go/ /usr/local/go/ ENV PATH="/usr/local/go/bin:${PATH}" COPY --chown=${STACKABLE_USER_UID}:0 opa/stackable/patches/patchable.toml /stackable/src/opa/stackable/patches/patchable.toml -COPY --chown=${STACKABLE_USER_UID}:0 opa/stackable/patches/${PRODUCT} /stackable/src/opa/stackable/patches/${PRODUCT} +COPY --chown=${STACKABLE_USER_UID}:0 opa/stackable/patches/${PRODUCT_VERSION} /stackable/src/opa/stackable/patches/${PRODUCT_VERSION} WORKDIR /stackable