Skip to content

Commit

Permalink
fix path for signing script (#109)
Browse files Browse the repository at this point in the history
  • Loading branch information
rajrohanyadav authored Jan 20, 2025
1 parent cdad038 commit 1c6c2f2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion build/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
6 changes: 3 additions & 3 deletions build/sign.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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"
Expand All @@ -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"
Expand Down

0 comments on commit 1c6c2f2

Please sign in to comment.