-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
WIP: just a crud code porting from tasks/bump-cli-release.yml
- Loading branch information
Showing
1 changed file
with
25 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 [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 | ||
|