From 6788b650453e02d7cf134fe3683a563a38e281fd Mon Sep 17 00:00:00 2001 From: Martin Reinhardt Date: Thu, 20 Aug 2026 19:39:25 +0200 Subject: [PATCH] fix(Tools): Correcting git-cliff install --- Dockerfile | 2 +- test/shell/tools.bats | 9 +++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 91e8abe..ccb26ea 100644 --- a/Dockerfile +++ b/Dockerfile @@ -88,7 +88,7 @@ RUN apt-get update -y &&\ python3 -m pip install ansible-docsmith ansible-argument-spec-generator &&\ # git cliff for changelog generation curl -LO "https://github.com/orhun/git-cliff/releases/download/v${GIT_CLIFF_VERSION}/git-cliff-${GIT_CLIFF_VERSION}-x86_64-unknown-linux-gnu.tar.gz" &&\ - tar -zxvf "git-cliff-${GIT_CLIFF_VERSION}-x86_64-unknown-linux-gnu.tar.gz" -C /usr/local/bin/ &&\ + tar -zxvf "git-cliff-${GIT_CLIFF_VERSION}-x86_64-unknown-linux-gnu.tar.gz" -C /usr/local/bin/ --strip-components=1 "git-cliff-${GIT_CLIFF_VERSION}/git-cliff" &&\ rm "git-cliff-${GIT_CLIFF_VERSION}-x86_64-unknown-linux-gnu.tar.gz" &&\ # clean up to slim image apt-get clean autoclean && apt-get autoremove --yes && rm -rf /var/lib/{apt,dpkg,cache,log}/ diff --git a/test/shell/tools.bats b/test/shell/tools.bats index 34d2520..3c2c719 100644 --- a/test/shell/tools.bats +++ b/test/shell/tools.bats @@ -29,6 +29,15 @@ [ "$status" -eq 0 ] } +@test "should load git-cliff" { + run git-cliff --version + [ "$status" -eq 0 ] +} + +@test "should have git-cliff installed directly in /usr/local/bin" { + [ -x /usr/local/bin/git-cliff ] +} + @test "should load yarn" { run yarn --version [ "$status" -eq 0 ]