From 9c977386e7dc82c4533be6e0a3387fede92eee5f Mon Sep 17 00:00:00 2001 From: Al Berez Date: Thu, 16 May 2024 05:58:55 +0000 Subject: [PATCH] WIP: just a crud code porting from tasks/bump-cli-release.yml --- .github/workflows/create-bosh-release.yml | 28 ++++++++++++++++++++--- 1 file changed, 25 insertions(+), 3 deletions(-) diff --git a/.github/workflows/create-bosh-release.yml b/.github/workflows/create-bosh-release.yml index b608d23..45099ff 100644 --- a/.github/workflows/create-bosh-release.yml +++ b/.github/workflows/create-bosh-release.yml @@ -7,7 +7,6 @@ on: jobs: - acquire_binaries: runs-on: ubuntu-latest steps: @@ -63,6 +62,9 @@ jobs: uses: actions/checkout@v4 #- name: Install bosh cli + #env: + #BOSH_CLI_VERSION: ${{ vars.BOSH_CLI_VERSION }} + #run: | #install_location=/usr/local/bin ## bosh_cli_artifact=bosh-cli-7.0.1-linux-amd64 @@ -77,8 +79,7 @@ jobs: ## chmod +x $install_location/bosh ## bosh --version - ## bosh_version=7.0.1 - ## curl "https://storage.googleapis.com/bosh-cli-artifacts/bosh-cli-#{bosh_version}-linux-amd64" --silent --output $install_location/bosh --location + ## curl "https://storage.googleapis.com/bosh-cli-artifacts/bosh-cli-#{BOSH_CLI_VERSION:-7.0.1}-linux-amd64" --silent --output $install_location/bosh --location ## chmod +x $install_location/bosh ## bosh --version @@ -109,6 +110,27 @@ jobs: echo AWS_ACCESS_KEY_ID: ${AWS_ACCESS_KEY_ID:?} echo AWS_SECRET_ACCESS_KEY: ${AWS_SECRET_ACCESS_KEY:?} + OLD_V6_BLOB_PATH=$(bosh blobs --column=path | grep "cf-") + + bosh blobs + + bosh remove-blob $OLD_V6_BLOB_PATH + + bosh blobs + + echo bosh add-blob ../v6-cli-binary/cf-cli_${LATEST_V6_CLI_VERSION}_linux_x86-64.tgz cf-cli_${LATEST_V6_CLI_VERSION}_linux_x86-64.tgz + + bosh upload-blobs + + git config --global user.email cf-cli-eng@pivotal.io + git config --global user.name "CI Bot" + + git add config/blobs.yml + git status + git commit -m "bump v6 cli to ${LATEST_V6_CLI_VERSION}" + echo else + echo "Release has latest v6 CLI version, skipping bump." + git log -5 # - name: | # Test Bosh release # - Claim Shepherd env