Skip to content

Commit 1fa091e

Browse files
committed
feat: Add GCS public blob store
1 parent 0a83612 commit 1fa091e

File tree

3 files changed

+29
-6
lines changed

3 files changed

+29
-6
lines changed

.github/workflows/version_bump_and_new_release.yml

Lines changed: 26 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,18 +12,29 @@ 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
1820
run: sudo apt update && DEBIAN_FRONTEND=noninteractive TZ=Etc/UTC sudo apt install jq curl git sed nodejs make wget unzip -y
1921

2022
- name: Create the cache
21-
run: mkdir /tmp/cache /tmp/loki-blobs
23+
run: mkdir /tmp/cache
24+
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
2235
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
@@ -113,6 +124,17 @@ jobs:
113124
/tmp/cache/yq -i 'del(.builds.*)' .final_builds/license/index.yml
114125
shell: bash
115126

127+
- name: Create the BOSH private.yml file
128+
run: |
129+
cat - > config/private.yml <<EOS
130+
---
131+
blobstore:
132+
options:
133+
credentials_source: static
134+
json_key: |
135+
${{ secrets.GCP_BLOBSTORE_JSON_KEY }}
136+
EOS
137+
116138
- name: Create the bosh release
117139
id: loki-boshrelease
118140
run: |

.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)