This repository has been archived by the owner on Dec 21, 2023. It is now read-only.
#2719 Create GH Action for building the CLI #2795
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR introduces a GitHub Action/Workflow that builds the CLI and uploads it as an artifact to the action itself (not to gcloud for now).
Note: The release step is not fully implemented yet. CLI is currently uploaded to GH actions instead of google cloud, but I guess that's a good thing.
In addition, I've removed all scripts that were used to build the CLI via travis-ci previously.
New Features
GH Actions
Looks as follows:
Build CLI on {Linux, Windows, MacOS}
This builds the cli on the target platform, and uploads an artifact to GitHub.
Release Keptn
Not implemented yet, but here is the idea
This is only triggered for release branches (e.g., release-0.8.0).
It downloads the previously built artifact, creates a draft release, and uploads the CLI assets to the draft release.
The end result of this step is a draft release with up2date CLI binaries (packed as .tar.gz):