Repository: yetus Updated Branches: refs/heads/master a8e04eb70 -> d36572c2a
YETUS-717. Change hadolint plugin to support all Dockerfiles, not just 'Dockerfile' Signed-off-by: Akira Ajisaka <[email protected]> Project: http://git-wip-us.apache.org/repos/asf/yetus/repo Commit: http://git-wip-us.apache.org/repos/asf/yetus/commit/d36572c2 Tree: http://git-wip-us.apache.org/repos/asf/yetus/tree/d36572c2 Diff: http://git-wip-us.apache.org/repos/asf/yetus/diff/d36572c2 Branch: refs/heads/master Commit: d36572c2a07993e85aedaadb8f5409b0e0b2e7f5 Parents: a8e04eb Author: Allen Wittenauer <[email protected]> Authored: Wed Nov 14 10:48:58 2018 -0800 Committer: Akira Ajisaka <[email protected]> Committed: Fri Nov 30 17:11:09 2018 +0900 ---------------------------------------------------------------------- precommit/src/main/shell/test-patch-docker/Dockerfile-endstub | 4 ++-- precommit/src/main/shell/test-patch.d/hadolint.sh | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/yetus/blob/d36572c2/precommit/src/main/shell/test-patch-docker/Dockerfile-endstub ---------------------------------------------------------------------- diff --git a/precommit/src/main/shell/test-patch-docker/Dockerfile-endstub b/precommit/src/main/shell/test-patch-docker/Dockerfile-endstub index ce76491..321fafe 100644 --- a/precommit/src/main/shell/test-patch-docker/Dockerfile-endstub +++ b/precommit/src/main/shell/test-patch-docker/Dockerfile-endstub @@ -14,8 +14,8 @@ # See the License for the specific language governing permissions and # limitations under the License. -ADD launch-test-patch.sh /testptch/launch-test-patch.sh +COPY launch-test-patch.sh /testptch/launch-test-patch.sh RUN mkdir /testptch/extras RUN chmod a+rwx /testptch/extras RUN chmod a+rx /testptch/launch-test-patch.sh -CMD /testptch/launch-test-patch.sh \ No newline at end of file +CMD ["/testptch/launch-test-patch.sh"] \ No newline at end of file http://git-wip-us.apache.org/repos/asf/yetus/blob/d36572c2/precommit/src/main/shell/test-patch.d/hadolint.sh ---------------------------------------------------------------------- diff --git a/precommit/src/main/shell/test-patch.d/hadolint.sh b/precommit/src/main/shell/test-patch.d/hadolint.sh index 2392e29..804bd4a 100755 --- a/precommit/src/main/shell/test-patch.d/hadolint.sh +++ b/precommit/src/main/shell/test-patch.d/hadolint.sh @@ -29,7 +29,7 @@ function hadolint_filefilter { declare filename=$1 - if [[ ${filename} =~ Dockerfile$ ]]; then + if [[ ${filename} =~ Dockerfile ]]; then add_test hadolint yetus_add_array_element HADOLINT_CHECKFILES "${filename}" fi
