From 1c6c2f2ab38c7e9c708a83a455ead5ccf962eee1 Mon Sep 17 00:00:00 2001 From: Rohan Yadav Date: Mon, 20 Jan 2025 16:37:03 +0530 Subject: [PATCH] fix path for signing script (#109) --- build/Dockerfile | 2 +- build/sign.sh | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/build/Dockerfile b/build/Dockerfile index 3f66c72..8f0fcf9 100644 --- a/build/Dockerfile +++ b/build/Dockerfile @@ -47,6 +47,6 @@ ENV GOFLAGS="-buildvcs=false" # Since the user does not match the owners of the repo "git rev-parse --is-inside-work-tree" fails and goreleaser does not populate projectName # https://stackoverflow.com/questions/72978485/git-submodule-update-failed-with-fatal-detected-dubious-ownership-in-repositor RUN git config --global --add safe.directory '*' -COPY ./sign.sh ./sign_deb.exp ./sign_rpm.exp ./sign_tar.exp /usr/local/bin +COPY ./build/sign.sh ./build/sign_deb.exp ./build/sign_rpm.exp ./build/sign_tar.exp /usr/local/bin/ RUN curl -L https://github.com/cli/cli/releases/download/v${GH_VERSION}/gh_${GH_VERSION}_linux_amd64.deb -o gh_${GH_VERSION}_linux_amd64.deb RUN dpkg -i gh_${GH_VERSION}_linux_amd64.deb diff --git a/build/sign.sh b/build/sign.sh index d40a874..3fd6d1f 100755 --- a/build/sign.sh +++ b/build/sign.sh @@ -44,7 +44,7 @@ sles_regex="(.*sles12.*)" for rpm_file in $(find -regex ".*\.\(rpm\)");do echo "===> Signing $rpm_file" - ./sign_rpm.exp $rpm_file ${GPG_PASSPHRASE} + sign_rpm.exp $rpm_file ${GPG_PASSPHRASE} echo "===> Sign verification $rpm_file" rpm -v --checksig $rpm_file @@ -63,7 +63,7 @@ for deb_file in $(find -regex ".*\.\(deb\)"); do echo "===> Signing $deb_file" # Run the sign_deb.exp script to sign the .deb file -./sign_deb.exp $deb_file ${GPG_PASSPHRASE} ${GPG_MAIL} + sign_deb.exp $deb_file ${GPG_PASSPHRASE} ${GPG_MAIL} echo "===> Sign verification $deb_file" @@ -73,7 +73,7 @@ done # Sign TARGZ files for targz_file in $(find . -type f -name "*.tar.gz"); do echo "===> Signing $targz_file" - ./sign_tar.exp $targz_file ${GPG_PASSPHRASE} + sign_tar.exp $targz_file ${GPG_PASSPHRASE} asc_file="${targz_file}.asc" if [ -f "$asc_file" ]; then echo "===> Sign verification $targz_file"