Skip to content

Commit

Permalink
Provide the bearer token to vendir, if provided
Browse files Browse the repository at this point in the history
  • Loading branch information
lnhrdt committed Nov 11, 2024
1 parent 91e60ac commit 6a8c50a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion set-vendir-channels-path-to-imgpkg-bundle/action.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,8 @@ yq -i "
| .directories |= sort_by(.path == \"channels\" | not)
" "$VENDIR_FILE"

vendir sync
if [ -n "$BEARER_TOKEN" ]; then
IMGPKG_TOKEN="$BEARER_TOKEN" vendir sync
else
vendir sync
fi

0 comments on commit 6a8c50a

Please sign in to comment.