Skip to content

Commit aabb6d0

Browse files
authored
fix(opa): Use $PRODUCT_VERSION instead of $PRODUCT (#1531)
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.
1 parent 77cb342 commit aabb6d0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

opa/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ COPY --from=golang-image /usr/local/go/ /usr/local/go/
6666
ENV PATH="/usr/local/go/bin:${PATH}"
6767

6868
COPY --chown=${STACKABLE_USER_UID}:0 opa/stackable/patches/patchable.toml /stackable/src/opa/stackable/patches/patchable.toml
69-
COPY --chown=${STACKABLE_USER_UID}:0 opa/stackable/patches/${PRODUCT} /stackable/src/opa/stackable/patches/${PRODUCT}
69+
COPY --chown=${STACKABLE_USER_UID}:0 opa/stackable/patches/${PRODUCT_VERSION} /stackable/src/opa/stackable/patches/${PRODUCT_VERSION}
7070

7171
WORKDIR /stackable
7272

0 commit comments

Comments
 (0)