Skip to content

Commit b76db9e

Browse files
authored
feat: Add GCS public blob store (#19)
1 parent 0a83612 commit b76db9e

File tree

3 files changed

+17
-5
lines changed

3 files changed

+17
-5
lines changed

.github/workflows/version_bump_and_new_release.yml

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ on:
1212
jobs:
1313
bump-version:
1414
runs-on: ubuntu-latest
15+
env:
16+
BOSH_VERSION: 7.6.1
1517

1618
steps:
1719
- name: Install the requirements
@@ -20,10 +22,19 @@ jobs:
2022
- name: Create the cache
2123
run: mkdir /tmp/cache /tmp/loki-blobs
2224

25+
- name: Create the BOSH private.yml file
26+
run: |
27+
cat - > config/private.yml <<EOS
28+
---
29+
blobstore:
30+
options:
31+
credentials_source: static
32+
json_key: |
33+
${{ secrets.GCP_BLOBSTORE_JSON_KEY }}
34+
EOS
35+
2336
- name: Download Bosh CLI
24-
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
25-
env:
26-
BOSH_VERSION: 7.6.1
37+
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
2738

2839
- name: Checkout the latest Loki Boshrelease
2940
uses: actions/checkout@v4

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,4 @@ releases/**/*.tgz
1313
*#
1414
#*
1515
/notes/
16+
/scripts/ssl/certs/

config/final.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
name: loki
33
blobstore:
4-
provider: local
4+
provider: gcs
55
options:
6-
blobstore_path: /tmp/loki-blobs
6+
bucket_name: loki-boshrelease

0 commit comments

Comments
 (0)