Skip to content

Commit

Permalink
feat: Add GCS public blob store
Browse files Browse the repository at this point in the history
  • Loading branch information
ZPascal committed Jul 21, 2024
1 parent 0a83612 commit 1fa091e
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 6 deletions.
30 changes: 26 additions & 4 deletions .github/workflows/version_bump_and_new_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,18 +12,29 @@ on:
jobs:
bump-version:
runs-on: ubuntu-latest
env:
BOSH_VERSION: 7.6.1

steps:
- name: Install the requirements
run: sudo apt update && DEBIAN_FRONTEND=noninteractive TZ=Etc/UTC sudo apt install jq curl git sed nodejs make wget unzip -y

- name: Create the cache
run: mkdir /tmp/cache /tmp/loki-blobs
run: mkdir /tmp/cache

- name: Create the BOSH private.yml file
run: |
cat - > config/private.yml <<EOS
---
blobstore:
options:
credentials_source: static
json_key: |
${{ secrets.GCP_BLOBSTORE_JSON_KEY }}
EOS
- name: Download Bosh CLI
run: cd /tmp/cache && curl -sL https://github.com/cloudfoundry/bosh-cli/releases/download/v${BOSH_VERSION}/bosh-cli-${BOSH_VERSION}-linux-amd64 > bosh && chmod 777 bosh
env:
BOSH_VERSION: 7.6.1
run: cd /tmp/cache && curl -sL https://github.com/cloudfoundry/bosh-cli/releases/download/v${BOSH_VERSION}/bosh-cli-${{ env.BOSH_VERSION }}-linux-amd64 > bosh && chmod 777 bosh

- name: Checkout the latest Loki Boshrelease
uses: actions/checkout@v4
Expand Down Expand Up @@ -113,6 +124,17 @@ jobs:
/tmp/cache/yq -i 'del(.builds.*)' .final_builds/license/index.yml
shell: bash

- name: Create the BOSH private.yml file
run: |
cat - > config/private.yml <<EOS
---
blobstore:
options:
credentials_source: static
json_key: |
${{ secrets.GCP_BLOBSTORE_JSON_KEY }}
EOS
- name: Create the bosh release
id: loki-boshrelease
run: |
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,4 @@ releases/**/*.tgz
*#
#*
/notes/
/scripts/ssl/certs/
4 changes: 2 additions & 2 deletions config/final.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
name: loki
blobstore:
provider: local
provider: gcs
options:
blobstore_path: /tmp/loki-blobs
bucket_name: loki-boshrelease

0 comments on commit 1fa091e

Please sign in to comment.