+
Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
89 commits
Select commit Hold shift + click to select a range
ae27f86
Update the cursor and fix the marker in Safari (#211)
javisperez Apr 15, 2024
650f5f4
Update Home.vue (#220)
javisperez Apr 15, 2024
a9f1b24
Rewrite of usecases.md (#221)
bmicklea Apr 16, 2024
465030e
split platform builds
gorkem Apr 14, 2024
5708352
Add discord link tracking (#224)
bmicklea Apr 16, 2024
e94fadb
Create ROADMAP.md (#217)
bmicklea Apr 16, 2024
44877d3
Fix help messages for kit info and kit inspect
amisevsk Mar 15, 2024
ee550c1
Create pull_request_template.md
amisevsk Apr 16, 2024
1941570
Update flag description in pack command
gorkem Apr 16, 2024
eeb116d
Add the Spotify podcast to the blog entry (#229)
javisperez Apr 17, 2024
a506128
Add podcast blogpost (#232)
javisperez Apr 17, 2024
f54bf88
Add support for .kitignore files
amisevsk Apr 8, 2024
46fd7d8
Fix how directories are handled while packing
amisevsk Apr 8, 2024
496f44e
Avoid packing Kitfile and .kitignore as part of layer
amisevsk Apr 8, 2024
35b924e
Fixup handling of existing directories while unpacking
amisevsk Apr 9, 2024
5f357a7
Improve path handling in kit pack to allow intersecting layers
amisevsk Apr 11, 2024
6ac81f7
Remove out-of-date pack command test
amisevsk Apr 12, 2024
8fe07ef
Print warning when an entire layer would be ignored by kitignore
amisevsk Apr 15, 2024
98fbdf9
Add unit tests for ignore functionality
amisevsk Apr 15, 2024
1da1154
Clean paths before checking if the match ignores
amisevsk Apr 15, 2024
cb615fc
Fixup: go.mod tidy and license headers
amisevsk Apr 16, 2024
a8dc297
Update pull_request_template.md (#235)
bmicklea Apr 17, 2024
23b0bf3
Add what's new to README (#234)
bmicklea Apr 17, 2024
6da9c4e
Set CLI output to command's output
amisevsk Apr 15, 2024
1f04de9
Fix flag collision in unpack
amisevsk Apr 15, 2024
9224434
Fix path handling when packing layers
amisevsk Apr 16, 2024
75f88f2
Add functional tests
amisevsk Apr 16, 2024
ac9b7fe
Add initial functional test cases.
amisevsk Apr 16, 2024
c728cf7
Fixup minor display issues
amisevsk Apr 17, 2024
be43ebb
Rework functional tests; add tests for 'kit remove'
amisevsk Apr 17, 2024
0cd6272
Add slightly nicer unicode progress bar
amisevsk Mar 22, 2024
cb90550
Remove timestamps from gzip headers to avoid changing hashes
amisevsk Apr 18, 2024
b915252
Add test for file timestamps
amisevsk Apr 18, 2024
ea38aa3
Update workflow file to run on multiple platforms
gorkem Apr 19, 2024
e0ac1ea
Specify bash as shell
gorkem Apr 19, 2024
b5f1402
Pass Apple env vars to notarization
gorkem Apr 19, 2024
5025057
Update release action to use gh for creating a docs update PR
amisevsk Apr 19, 2024
71ba3de
Update macOS artifact signing script to use kitops-darwin-arm64.zip
gorkem Apr 19, 2024
f8019dc
docs: update CLI documentation for v0.1.3
gorkem Apr 19, 2024
9a9aea4
update next steps (#238)
bmicklea Apr 19, 2024
0ab231d
Changes to the KitOps home (#251)
javisperez Apr 19, 2024
809cffe
Add Gorkem and Jesse's blog posts (#250)
Jwilliamsr Apr 19, 2024
31d78ae
Fetch origin when preparing docs update PR
amisevsk Apr 19, 2024
1636b5e
Fail packing process if layer path does not exist locally.
amisevsk Apr 23, 2024
21cfad6
Add versus.md (#241)
bmicklea Apr 24, 2024
0ad9dd0
Avoid copying layer into local storage during pack
amisevsk Apr 23, 2024
b5921ce
Add dev command
gorkem Feb 29, 2024
2e3810d
Update go.mod dependencies
gorkem Apr 12, 2024
81349f8
fixup: formatting
gorkem Apr 12, 2024
b758b22
Add license headers
gorkem Apr 12, 2024
4859268
fix build for wins/linux
gorkem Apr 12, 2024
5db0758
fixup: remove trailing whitespace
gorkem Apr 12, 2024
3c5d817
rearrange platform specific files
gorkem Apr 12, 2024
3ef7950
add generate step
gorkem Apr 15, 2024
a15178e
Organize messages
gorkem Apr 16, 2024
8dee136
fixup: whitespace
gorkem Apr 16, 2024
0d0754b
Add host option
gorkem Apr 17, 2024
cb309df
fix api change
gorkem Apr 17, 2024
b4c199d
Add messages for unsupported platforms
gorkem Apr 18, 2024
613a5bf
Save logs from running dev harness server
amisevsk Apr 18, 2024
dc4fd58
Fixup minor logging issues in dev command
amisevsk Apr 18, 2024
efaa269
Add the UI for the dev mode
javisperez Apr 19, 2024
5f44942
Add tooltips to each parameter
javisperez Apr 23, 2024
fc0efb9
Integrate new UI to dev command
gorkem Apr 24, 2024
c210fe0
run generate
gorkem Apr 25, 2024
52cbc02
keep build artifacts
gorkem Apr 25, 2024
7b38cf3
Fix doc for host flag
gorkem Apr 25, 2024
df1c108
Add parts to modelkit model
amisevsk Apr 22, 2024
b9e5465
Pack and unpack modelkit parts in addition to model
amisevsk Apr 22, 2024
fb79248
Add tests for model parts
amisevsk Apr 22, 2024
29c5c78
Add support for packing remote model references
amisevsk Apr 23, 2024
abd8023
Add ability to unpack modelkits with remote references
amisevsk Apr 23, 2024
ed9babe
Allow pulling modelkits with remote references.
amisevsk Apr 23, 2024
c8ad09c
Refactor functional testing to allow different test structs
amisevsk Apr 24, 2024
0a56201
Refactor all commands to not use os.Exit() to enable testing
amisevsk Apr 24, 2024
dd0edb6
Add tests for packing and unpacking with modelkit references
amisevsk Apr 24, 2024
37073bf
Work around Cobra error/usage printing issue
amisevsk Apr 25, 2024
4d73b84
Rename model part "description" field to "type"
amisevsk Apr 25, 2024
4f678dc
Added two posts (Nevo + Brad) (#264)
Jwilliamsr Apr 26, 2024
31c4f79
Fix the "hijacked" scrollbar bug (#270)
javisperez Apr 26, 2024
7052c47
Set SilenceErrors and SilenceUsage on root command PersistentPreRun
amisevsk Apr 25, 2024
ea97397
Add basic validation to Kitfiles
amisevsk Apr 24, 2024
1331648
Validate modelpart's type field
amisevsk Apr 25, 2024
75d3b4a
new example for login
gorkem Apr 28, 2024
beb3fe4
Improve error handling in dev command
gorkem Apr 28, 2024
9dcef29
Fixup validation - typo in regexp
amisevsk Apr 30, 2024
5917e5f
Install dependencies for building the frontend
gorkem Apr 30, 2024
96d86a3
fix missing embed for amd64
gorkem Apr 30, 2024
b7597e3
docs: update CLI documentation for release-frontend-deps
gorkem Apr 30, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<!-- Thank you for submitting a Pull Request. Please review
* Our contributing guide: https://github.com/jozu-ai/kitops/blob/main/CONTRIBUTING.md
* Our code of conduct: https://github.com/jozu-ai/kitops/blob/main/CODE-OF-CONDUCT.md
-->

### Description
<!-- describe the changes in this PR -->

### Linked issues
<!-- link any issues in this repository that are related to the PR; use "closes <issue>" or "fixes <issue>" to automatically link issues to this PR -->
209 changes: 209 additions & 0 deletions .github/workflows/platform-release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,209 @@
name: Release with Platform builds

on:
workflow_dispatch:
inputs:
skip_signing:
description: 'Skip code signing'
required: true
default: false
type: boolean
release_tag:
description: 'Release tag'
required: true
type: string
push:
tags:
- 'v*'

permissions:
contents: write
pull-requests: write
jobs:
build-macos:
runs-on: macos-latest
steps:
- name: Checkout
uses: actions/checkout@v4

## install build dependencies for frontend generation
- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version-file: './frontend/dev-mode/.nvmrc'

- uses: pnpm/action-setup@v3
name: Install pnpm
with:
version: 8.0.0

- name: Setup Go
uses: actions/setup-go@v5
with:
go-version-file: 'go.mod'

- name: Import Apple Code Signing Certificates
if: ${{ github.event_name != 'workflow_dispatch' || !inputs.skip_signing }}
uses: Apple-Actions/import-codesign-certs@v2
with:
p12-file-base64: ${{ secrets.APPLE_CERTIFICATE_BASE64 }}
p12-password: ${{ secrets.APPLE_CERTIFICATE_PASSWORD }}

- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v5
with:
version: latest
distribution: goreleaser
args: release --clean --snapshot --config ./.goreleaser.darwin.yaml
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
APPLE_DEVELOPER_ID: ${{ secrets.APPLICATION_IDENTITY}}
APPLE_ID: ${{ vars.APPLE_ID }}
APPLE_ID_PASSWORD: ${{ secrets.APPLE_ID_PASSWORD}}
APPLE_TEAM_ID: ${{ secrets.APPLE_TEAM_ID}}
- name: Notarize the macOS binary
env:
APPLE_DEVELOPER_ID: ${{ secrets.APPLICATION_IDENTITY}}
APPLE_ID: ${{ vars.APPLE_ID }}
APPLE_ID_PASSWORD: ${{ secrets.APPLE_ID_PASSWORD}}
APPLE_TEAM_ID: ${{ secrets.APPLE_TEAM_ID}}
shell: bash
run: |
./build/scripts/sign ./dist/kitops-darwin-arm64.zip
./build/scripts/sign ./dist/kitops-darwin-x86_64.zip
- name: Upload macOS artifacts
uses: actions/upload-artifact@v4
with:
name: dist-macos
if-no-files-found: error
retention-days: 7
path: |
./dist/*.zip

build-windows:
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup Go
uses: actions/setup-go@v5
with:
go-version-file: 'go.mod'

- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v5
with:
version: latest
distribution: goreleaser
args: release --clean --snapshot --config ./.goreleaser.windows.yaml
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Upload Windows artifacts
uses: actions/upload-artifact@v4
with:
name: dist-windows
if-no-files-found: error
retention-days: 7
path: |
./dist/*.zip

build-linux:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup Go
uses: actions/setup-go@v5
with:
go-version-file: 'go.mod'

- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v5
with:
version: latest
distribution: goreleaser
args: release --clean --snapshot --config ./.goreleaser.linux.yaml
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Upload Linux artifacts
uses: actions/upload-artifact@v4
with:
name: dist-linux
if-no-files-found: error
retention-days: 7
path: |
./dist/*.tar.gz
# Creates a release with the artifacts from the previous steps.
# workflow_dispatch triggered versions will be draft releases.
# CLI docs are not updated for workflow_dispatch triggered versions.
release:
runs-on: ubuntu-latest
needs: [build-linux, build-macos, build-windows]
steps:
- name: Merge built artifacts
uses: actions/download-artifact@v4
with:
path: dist
pattern: dist-*
merge-multiple: true
- name: Create Checksums
env:
TAG_NAME: ${{ github.ref_name}}
run: |
shopt -s failglob
pushd dist
shasum -a 256 kitops-* > checksums.txt
mv checksums.txt kitops_${TAG_NAME}_checksums.txt
popd
- name: Create Release
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
TAG_NAME: ${{ inputs.release_tag || github.ref_name}}
REPO: ${{ github.repository }}
DRAFT_RELEASE: ${{ github.event_name == 'workflow_dispatch' }}
run: |
echo "Creating release for ${TAG_NAME}"
release_args=(
${TAG_NAME}
./dist/*.*
--title "Release ${TAG_NAME}"
--generate-notes
--repo ${REPO}
)
if [[ "${DRAFT_RELEASE}" == "false" ]]; then
previous_release="$(gh release list --repo $REPO --limit 1 --json tagName --jq '.[] | .tagName ')"
echo "Previous release: ${previous_release}"
release_args+=( --latest )
release_args+=( --verify-tag )
release_args+=( --notes-start-tag "${previous_release}" )
else
release_args+=( --draft )
fi
gh release create "${release_args[@]}"

- name: Checkout
uses: actions/checkout@v4

- name: Generate CLI documentation
shell: bash
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
CURRENT_BRANCH=$(git rev-parse --abbrev-ref HEAD)
PR_BRANCH="${{ github.ref_name }}-docs-update"
git fetch origin main
git branch "$PR_BRANCH"
git checkout "$PR_BRANCH"
git pull origin --ff-only "${PR_BRANCH}" || true

git config --global user.name "${GITHUB_ACTOR}"
git config --global user.email "${GITHUB_ACTOR_ID}+${GITHUB_ACTOR}@users.noreply.github.com"

./docs/src/docs/cli/generate.sh > /dev/null
git add --all
git commit -m "docs: update CLI documentation for ${{ github.ref_name }}"
git push origin "${PR_BRANCH}"
gh pr create --fill --base main --head "${PR_BRANCH}"
git checkout "${CURRENT_BRANCH}"
35 changes: 33 additions & 2 deletions .github/workflows/pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,11 @@ on:
jobs:
go:
name: Check sources
runs-on: ubuntu-20.04
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-latest, windows-latest, ubuntu-latest]

steps:
- name: Checkout code
uses: actions/checkout@v4
Expand All @@ -18,6 +22,7 @@ jobs:
go-version-file: 'go.mod'

- name: Check go.mod
shell: bash
run: |
go mod tidy
if ! git diff --quiet; then
Expand All @@ -26,6 +31,7 @@ jobs:
fi

- name: Check format
shell: bash
run: |
go fmt ./...
if ! git diff --quiet; then
Expand All @@ -34,6 +40,7 @@ jobs:
fi

- name: Check license headers
shell: bash
run: |
go install github.com/google/addlicense@latest
if ! addlicense --check -s -l apache -c "The KitOps Authors." $(find . -name '*.go'); then
Expand All @@ -43,25 +50,49 @@ jobs:
exit 1
fi

- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version-file: './frontend/dev-mode/.nvmrc'

- uses: pnpm/action-setup@v3
name: Install pnpm
with:
version: 8.0.0

- name: Generate embeds
run: |
go generate ./...

- name: Check build
shell: bash
run: |
if ! go build -o kit; then
echo "Project does not build"
exit 1
fi

- name: Run tests
shell: bash
run: |
if ! go test ./... -v; then
echo "Project tests failed"
exit 1
fi

- name: Check for trailing whitespace
shell: bash
run: |
files=$(grep -E -lI --exclude '*.svg' --exclude 'docs/*' " +$" $(git ls-files) || true)
files=$(grep -E -lI --exclude '*.svg' --exclude 'docs/*' --exclude 'frontend/*' " +$" $(git ls-files) || true)
if [ ! -z $files ]; then
echo "Trailing whitespace in files:"
echo "$files"
exit 1
fi
- name: Upload build artifacts
uses: actions/upload-artifact@v4
with:
name: pr-artifacts-${{ matrix.os }}
retention-days: 3
path: |
./kit*
52 changes: 0 additions & 52 deletions .github/workflows/release.yaml

This file was deleted.

1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@
.vscode
kit
dist/
pkg/lib/harness/ui.tar.gz
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "pkg/lib/harness/llama.cpp"]
path = pkg/lib/harness/llama.cpp
url = https://github.com/ggerganov/llama.cpp.git
Loading
点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载