Skip to content

Commit a9f55fd

Browse files
committed
ci(pre-commit): Ignore j2 files for hadolint hook
1 parent 1789cc2 commit a9f55fd

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,3 +56,4 @@ repos:
5656
rev: b3555ba9c2bfd9401e79f2f0da68dd1ae38e10c7 # 2.12.0
5757
hooks:
5858
- id: hadolint
59+
exclude: \.j2$

template/docker/Dockerfile.j2

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,9 +101,10 @@ EOF
101101
COPY LICENSE /licenses/LICENSE
102102
103103
COPY --from=builder /app/* /usr/local/bin/
104-
# {[% if operator.include_productconfig is undefined or operator.include_productconfig == true %}]
104+
105+
{[% if operator.include_productconfig is undefined or operator.include_productconfig == true %}]
105106
COPY deploy/config-spec/properties.yaml /etc/stackable/{[operator.name}]/config-spec/properties.yaml
106-
# {[% endif %}]
107+
{[% endif %}]
107108
108109
USER ${STACKABLE_USER_UID}
109110

0 commit comments

Comments
 (0)