Skip to content

Commit

Permalink
ci(pre-commit): Ignore j2 files for hadolint hook (#438)
Browse files Browse the repository at this point in the history
* ci(pre-commit): Ignore j2 files for hadolint hook

* chore(template): Add spaces back into variable interpolation (to make it what it was before recent broken changes).
  • Loading branch information
NickLarsenNZ committed Sep 17, 2024
1 parent 1789cc2 commit 918b646
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
1 change: 1 addition & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -56,3 +56,4 @@ repos:
rev: b3555ba9c2bfd9401e79f2f0da68dd1ae38e10c7 # 2.12.0
hooks:
- id: hadolint
exclude: \.j2$
7 changes: 4 additions & 3 deletions template/docker/Dockerfile.j2
Original file line number Diff line number Diff line change
Expand Up @@ -101,9 +101,10 @@ EOF
COPY LICENSE /licenses/LICENSE
COPY --from=builder /app/* /usr/local/bin/
# {[% if operator.include_productconfig is undefined or operator.include_productconfig == true %}]
COPY deploy/config-spec/properties.yaml /etc/stackable/{[operator.name}]/config-spec/properties.yaml
# {[% endif %}]
{[% if operator.include_productconfig is undefined or operator.include_productconfig == true %}]
COPY deploy/config-spec/properties.yaml /etc/stackable/{[ operator.name }]/config-spec/properties.yaml
{[% endif %}]
USER ${STACKABLE_USER_UID}
Expand Down

0 comments on commit 918b646

Please sign in to comment.