Skip to content

Commit

Permalink
fix shellcheck (#376)
Browse files Browse the repository at this point in the history
* fix shellcheck

Signed-off-by: cpanato <ctadeu@gmail.com>

* fix missing export

Signed-off-by: cpanato <ctadeu@gmail.com>

Signed-off-by: cpanato <ctadeu@gmail.com>
  • Loading branch information
cpanato authored Sep 23, 2022
1 parent bb050cf commit 43b86d0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ sign-test-images:
.PHONY: sign-release-images
sign-release-images: sign-test-images
$(foreach artifact,$(artifacts), \
GIT_HASH=$(GIT_HASH) GIT_VERSION=$(GIT_TAG) ARTIFACT=imagerefs-$(artifact); ./scripts/sign-release-images.sh \
echo "Signing $(artifact)"; export GIT_HASH=$(GIT_HASH) GIT_VERSION=$(GIT_TAG) ARTIFACT=imagerefs-$(artifact); ./scripts/sign-release-images.sh \
)

.PHONY: release-images
Expand Down
3 changes: 2 additions & 1 deletion scripts/sign-release-images.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,5 @@ if [[ ! -f $ARTIFACT ]]; then
fi

echo "Signing images with Keyless..."
cosign sign --timeout 5m --force -a GIT_HASH="$GIT_HASH" -a GIT_VERSION="$GIT_VERSION" $(cat $ARTIFACT)
readarray -t file_args < <(cat "$ARTIFACT")
cosign sign --timeout 5m --force -a GIT_HASH="$GIT_HASH" -a GIT_VERSION="$GIT_VERSION" "${file_args[@]}"

0 comments on commit 43b86d0

Please sign in to comment.