Skip to content

Commit

Permalink
Add debugging statements to vendir sync command
Browse files Browse the repository at this point in the history
  • Loading branch information
lnhrdt committed Nov 11, 2024
1 parent 6a8c50a commit 4d8eba0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
3 changes: 3 additions & 0 deletions set-vendir-channels-path-to-imgpkg-bundle/action.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,11 @@ yq -i "
| .directories |= sort_by(.path == \"channels\" | not)
" "$VENDIR_FILE"

echo "BEARER_TOKEN is: ${BEARER_TOKEN:-not set}"
if [ -n "$BEARER_TOKEN" ]; then
echo running vendir sync with IMGPKG_TOKEN
IMGPKG_TOKEN="$BEARER_TOKEN" vendir sync
else
echo running vendir sync without IMGPKG_TOKEN
vendir sync
fi
8 changes: 4 additions & 4 deletions set-vendir-channels-path-to-imgpkg-bundle/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,18 @@ description: Sets a vendir directory to a imgpkg bundle image.

inputs:
channel_name:
description: "The path under the channels directory to update."
description: The path under the channels directory to update.
required: true
imgpkg_bundle_image:
description: "The imgpkg bundle image."
description: The imgpkg bundle image.
required: true
bearer_token:
description: Optional bearer token for authentication.
required: false
path:
description: "The base directory path where vendir.yml is located."
description: The base directory path where vendir.yml is located.
required: false
default: "."
default: '.'

runs:
using: docker
Expand Down

0 comments on commit 4d8eba0

Please sign in to comment.