diff --git a/.github/workflows/version_bump_and_new_release.yml b/.github/workflows/version_bump_and_new_release.yml index deaab1b..b6d5ba2 100644 --- a/.github/workflows/version_bump_and_new_release.yml +++ b/.github/workflows/version_bump_and_new_release.yml @@ -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 @@ -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 <