Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 19 additions & 7 deletions .github/workflows/version_bump_and_new_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,18 +12,18 @@ 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: 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 @@ -53,9 +53,21 @@ jobs:
echo "USED_LOKI_VERSION=$(cat config/blobs.yml | grep loki | cut -d "-" -f 3 | cut -d ":" -f 1)" >> $GITHUB_ENV
echo "USED_PROMTAIL_VERSION=$(cat config/blobs.yml | grep promtail | cut -d "-" -f 3 | cut -d ":" -f 1)" >> $GITHUB_ENV

- name: Delete the blob configuration temporary
run: rm config/blobs.yml 2> /dev/null && touch config/blobs.yml

- name: Create the BOSH private.yml file
run: |
export GCP_BLOBSTORE_JSON_KEY=$(echo ${{ secrets.GCP_BLOBSTORE_JSON_KEY_BASE64 }} | base64 --decode)
cat - > config/private.yml <<EOS
---
blobstore:
options:
credentials_source: static
json_key: |
$GCP_BLOBSTORE_JSON_KEY
EOS

- name: Check the BOSH private.yml file
run: ls -la config && cat config/private.yml

- name: Execute the version bump
run: |
curl -sL $LATEST_JQ_DOWNLOAD_URL -o /tmp/cache/jq-linux64-$LATEST_JQ_VERSION
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
Loading