-
Notifications
You must be signed in to change notification settings - Fork 11
release: Fleetbase CLI v0.0.7 #10
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
Merged
Merged
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
83b7573
fix(install): honor --non-interactive, create api/.env, resolve --dir…
roncodes 6cb6a7a
bump version to v0.0.7
roncodes 4d718b1
release: v0.0.7
roncodes 992ee98
Merge pull request #9 from fleetbase/fix/install-fleetbase-cross-plat…
roncodes 46fc3dc
Potential fix for pull request finding 'CodeQL / Workflow does not co…
roncodes File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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
This file contains hidden or 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 |
|---|---|---|
| @@ -0,0 +1,25 @@ | ||
| name: Create Release | ||
| on: | ||
| push: | ||
| tags: | ||
| - 'v*' | ||
|
|
||
| permissions: | ||
| contents: write | ||
|
|
||
| jobs: | ||
| create: | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
| - name: Publish GitHub Release | ||
| uses: softprops/action-gh-release@v2 | ||
| with: | ||
| tag_name: ${{ github.ref_name }} | ||
| name: ${{ github.ref_name }} | ||
| body_path: RELEASE.md | ||
| generate_release_notes: true | ||
| draft: false | ||
| prerelease: false | ||
| env: | ||
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
This file contains hidden or 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 |
|---|---|---|
| @@ -0,0 +1,47 @@ | ||
| name: Release Tag | ||
|
|
||
| # Tags a release when a release branch is merged to main, and pushes the tag. Delegates | ||
| # to the reusable workflow in fleetbase/fleetbase. Requires org secret _GITHUB_AUTH_TOKEN | ||
| # (inherited); no-ops with a warning until it is set. | ||
| # | ||
| # It pushes the tag and nothing else — create-release.yml and the npm_publish job in | ||
| # ci.yml already chain off `push: tags: v*`. | ||
| # | ||
| # The version is never retyped: it comes from the branch name, and the tag is refused | ||
| # unless the files below and RELEASE.md already agree with it. This repository is a | ||
| # node CLI, so it carries package.json and package-lock.json. | ||
| # | ||
| # RELEASE.md is required, and its first line must name the version being released. That | ||
| # check is the only thing that can tell notes written for this release from the previous | ||
| # release's notes nobody replaced. | ||
| # | ||
| # Deliberately unpinned — it tracks the reusable workflow on main, so there is no ref | ||
| # here to remember to bump. | ||
| # | ||
| # workflow_dispatch is the recovery path. Use it when a release failed validation and the | ||
| # fix landed on main after the merge: re-running the merge event would check out the | ||
| # merge commit and never see that fix. | ||
|
|
||
| on: | ||
| pull_request: | ||
| types: [closed] | ||
| branches: [main] | ||
| workflow_dispatch: | ||
| inputs: | ||
| version: | ||
| description: "Version to tag, e.g. 1.2.3. Recovery only — a normal release reads it from the branch." | ||
| required: true | ||
| permissions: | ||
| contents: read | ||
|
|
||
| jobs: | ||
| tag: | ||
| if: github.event_name == 'workflow_dispatch' || | ||
| (github.event.pull_request.merged == true && | ||
| (startsWith(github.event.pull_request.head.ref, 'release/v') || | ||
| startsWith(github.event.pull_request.head.ref, 'dev-v'))) | ||
| uses: fleetbase/fleetbase/.github/workflows/release-tag.yml@main | ||
| with: | ||
| version-files: package.json,package-lock.json | ||
| version: ${{ github.event.inputs.version || '' }} | ||
| secrets: inherit |
This file contains hidden or 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
This file contains hidden or 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 |
|---|---|---|
| @@ -0,0 +1,16 @@ | ||
| > v0.0.7 ~ "Reliable install-fleetbase on macOS, Windows and CI" | ||
|
|
||
| --- | ||
| ## Fixes | ||
| - `flb install-fleetbase --non-interactive` no longer prompts for host, environment, directory or app name. Values come from flags or defaults, so the command runs without a TTY (CI, piped stdin). | ||
| - The installer now creates `api/.env` before starting containers. Previously Docker created a directory at that bind-mount path on a fresh clone and the API container could not boot. | ||
| - `--directory` is resolved to an absolute path, so relative paths and Git Bash style paths on Windows work. | ||
| - `--environment` is validated (`development` or `production`) and exits with a clear error otherwise. | ||
|
|
||
| --- | ||
| ## What's New | ||
| - `--app-name <name>` flag for `flb install-fleetbase`. | ||
|
|
||
| --- | ||
| ## Release process | ||
| - Release branches are now named `release/v<semver>`. CI runs on pull requests into `release/v*`, and merging a release branch into `main` tags the release, publishes it to npm and creates the GitHub Release from this file. |
This file contains hidden or 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains hidden or 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
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.