Skip to content

Commit

Permalink
WIP: just a crud code porting from tasks/bump-cli-release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
a-b committed May 16, 2024
1 parent e887291 commit 9c97738
Showing 1 changed file with 25 additions and 3 deletions.
28 changes: 25 additions & 3 deletions .github/workflows/create-bosh-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ on:

jobs:


acquire_binaries:
runs-on: ubuntu-latest
steps:
Expand Down Expand Up @@ -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
Expand All @@ -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

Expand Down Expand Up @@ -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 [email protected]
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
Expand Down

0 comments on commit 9c97738

Please sign in to comment.