Skip to content

Commit 91e60ac

Browse files
committed
Add bearer token input and vendir sync command
1 parent 4d9f949 commit 91e60ac

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

set-vendir-channels-path-to-imgpkg-bundle/action.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@ set -e
44

55
CHANNEL_NAME=$1
66
IMGPKG_BUNDLE_IMAGE=$2
7-
BASE_PATH=$3
7+
BEARER_TOKEN=$3
8+
BASE_PATH=$4
89

910
mkdir -p "$BASE_PATH"
1011
cd "$BASE_PATH"
@@ -29,3 +30,5 @@ yq -i "
2930
)
3031
| .directories |= sort_by(.path == \"channels\" | not)
3132
" "$VENDIR_FILE"
33+
34+
vendir sync

set-vendir-channels-path-to-imgpkg-bundle/action.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ inputs:
88
imgpkg_bundle_image:
99
description: "The imgpkg bundle image."
1010
required: true
11+
bearer_token:
12+
description: Optional bearer token for authentication.
13+
required: false
1114
path:
1215
description: "The base directory path where vendir.yml is located."
1316
required: false
@@ -19,4 +22,5 @@ runs:
1922
args:
2023
- ${{ inputs.channel_name }}
2124
- ${{ inputs.imgpkg_bundle_image }}
25+
- ${{ inputs.bearer_token }}
2226
- ${{ inputs.path }}

0 commit comments

Comments
 (0)