Skip to content

Commit

Permalink
WIP: use wget to preserve filename
Browse files Browse the repository at this point in the history
- updated makefile to use particular workflow file; long flags
- implemented secrets feedback
  • Loading branch information
a-b committed May 16, 2024
1 parent 9c97738 commit 282e968
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 12 deletions.
4 changes: 2 additions & 2 deletions .github/.secret
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
AWS_ACCESS_KEY_ID: 1234
AWS_SECRET_ACCESS_KEY: 5678
AWS_ACCESS_KEY_ID: fake-aws-access-key
AWS_SECRET_ACCESS_KEY: fake-aws-secret-access-key
18 changes: 12 additions & 6 deletions .github/workflows/create-bosh-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ jobs:
runs-on: ubuntu-latest
steps:

- name: Acquire latest CF CLI V8 linux binary
run: |
curl -L "https://packages.cloudfoundry.org/stable?release=linux64-binary&version=v7&source=bosh-package-cf-cli-release-workflow" | tar -zx
./cf version
# - name: Acquire latest CF CLI V8 linux binary
# run: |
# curl -L "https://packages.cloudfoundry.org/stable?release=linux64-binary&version=v7&source=bosh-package-cf-cli-release-workflow" | tar -zx
# ./cf version

# - name: Acquire latest CF CLI V8 linux binary
# run: |
Expand Down Expand Up @@ -98,6 +98,12 @@ jobs:
## apt-get update
## apt-get install -y build-essential

- name: Acquire latest CF CLI V8 linux binary
run: |
wget --trust-server-names "https://packages.cloudfoundry.org/stable?release=linux64-binary&version=v8&source=bosh-package-cf-cli-release-workflow"
tar -xvzf cf8-cli_*_linux_x86-64.tgz --wildcards 'cf*'
./cf version
- name: Create bosh release candidate
env:
AWS_REGION: ${{ vars.AWS_REGION }}
Expand Down Expand Up @@ -130,8 +136,8 @@ jobs:
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: |
# git log -5
# # - name: |
# Test Bosh release
# - Claim Shepherd env
# - Deploy release candidate
Expand Down
9 changes: 5 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
run:
ls .github/**/* | entr -c \
act -s GITHUB_TOKEN="$(gh auth token)" \
--var-file .github/.vars \
--secret-file .github/.secret \
-j bosh_release_create_candidate
act --secret GITHUB_TOKEN="$(gh auth token)" \
--var-file .github/.vars \
--secret-file .github/.secret \
--workflows .github/workflows/create-bosh-release.yml \
--job bosh_release_create_candidate

0 comments on commit 282e968

Please sign in to comment.