Skip to content

Commit

Permalink
Refine addblob.sh to configure S3 blobstore prior to upload blob (fixup)
Browse files Browse the repository at this point in the history
 Uploading blobs:
   Creating blob for path 'k3s-images/k3s-airgap-images-amd64.tar':
     Unmarshalling config '/home/runner/work/k3s-packages-boshrelease/k3s-packages-boshrelease/config/private.yml':
       yaml: line 2: mapping values are not allowed in this context
  • Loading branch information
gberche-orange committed Jan 2, 2024
1 parent 3864184 commit 12393e1
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions addblob.sh
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,11 @@ addBlobOnChecksumChange src/github.com/kubernetes/kubectl/kubectl kubectl/kubect
function configureS3BlobStore() {
if [ ! -z "${AWS_BOSH_ACCES_KEY_ID}" ]; then
cat - > config/private.yml <<EOS
---
blobstore:
options:
access_key_id: ${AWS_BOSH_ACCES_KEY_ID}
secret_access_key: ${AWS_BOSH_SECRET_ACCES_KEY}
---
blobstore:
options:
access_key_id: ${AWS_BOSH_ACCES_KEY_ID}
secret_access_key: ${AWS_BOSH_SECRET_ACCES_KEY}
EOS
else
echo "::warning::AWS_BOSH_ACCES_KEY_ID not set, skipping config/private.yml"
Expand Down

0 comments on commit 12393e1

Please sign in to comment.