Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve developer experience for testing draft PRs #84

Open
2 tasks
gberche-orange opened this issue Dec 9, 2024 · 0 comments
Open
2 tasks

Improve developer experience for testing draft PRs #84

gberche-orange opened this issue Dec 9, 2024 · 0 comments

Comments

@gberche-orange
Copy link
Member

gberche-orange commented Dec 9, 2024

Expected behavior

As a developper,
in order to test a draft PR,
I need to easily download the dev release tgz file stored as github action build artefact from a bastion container to perform bosh upload release command

Observed behavior

workaround

From cli/cli#6532

git clone https://github.com/orange-cloudfoundry/k3s-wrapper-boshrelease.git
cd k3s-wrapper-boshrelease/
gh auth login

#> ? Where do you use GitHub? GitHub.com
#> ? What is your preferred protocol for Git operations on this host? HTTPS
#> ? Authenticate Git with your GitHub credentials? No
#> ? How would you like to authenticate GitHub CLI? Login with a web browser
#> 
#> ! First copy your one-time code: [...]
#> Press Enter to open github.com in your browser... 
#> Simulating browser invocation from xdg-open call with params: https://github.com/login/device

# NOTE: Must redirect output to file as `gh api` will follow redirect and stream binary data
gh api /repos/{owner}/{repo}/actions/artifacts/416002865/zip > 416002865.zip

Possible fix

  • create one draft github release for each github action build for PR e.g. <branch-name>.<commit_hash>
  • delete draft github releases <branch-name>.* when a PR gets merged
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant