Skip to content

Commit

Permalink
Refine addblob.sh to upload blobs to s3
Browse files Browse the repository at this point in the history
See https://bosh.io/docs/release-blobs/#saving-blobs

currently failing with

creating bosh release: k3s-packages-1.24.17+k3s1.tgz
Building a release from directory '/github/workspace':
  - Constructing packages from directory:
      - Reading package from '/github/workspace/packages/k3s':
          Collecting package files:
            Missing files for pattern 'k3s/k3s'
      - Reading package from '/github/workspace/packages/k3s-images':
          Collecting package files:
            Missing files for pattern 'k3s-images/k3s-airgap-images-amd64.tar'
      - Reading package from '/github/workspace/packages/kubectl-k3s':
          Collecting package files:
            Missing files for pattern 'kubectl/kubectl'
Exit code 1
  • Loading branch information
gberche-orange committed Jan 2, 2024
1 parent f9b8572 commit 4cd5304
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions addblob.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ function addBlobOnChecksumChange() {
src_checksum=$(cat "${src}" | sha256sum | cut -d " " -f1)
if [ "${blob_checksum}" != "sha256:${src_checksum}" ] || [ "$blob_object_id" = "null" ]; then
bosh add-blob ${src} ${target}
# See https://bosh.io/docs/release-blobs/#saving-blobs
bosh upload-blobs
else
echo "skipping blob creation for ${target} with existing checksum: ${src_checksum}"
fi
Expand Down

0 comments on commit 4cd5304

Please sign in to comment.