-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Abirdcfly <[email protected]>
- Loading branch information
Showing
3 changed files
with
93 additions
and
2 deletions.
There are no files selected for viewing
This file contains 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 |
---|---|---|
|
@@ -3,6 +3,8 @@ name: Build KubeAGI arcadia image | |
on: | ||
push: | ||
branches: [main] | ||
tags: | ||
- 'v*' | ||
env: | ||
GO_VER: 1.20 | ||
GO_TAGS: "" | ||
|
@@ -45,6 +47,15 @@ jobs: | |
- uses: benjlevesque/[email protected] | ||
name: Get short commit sha | ||
id: short-sha | ||
- name: Set extra image tags | ||
id: set-release-tags | ||
run: | | ||
if [[ $GITHUB_REF =~ ^refs/tags/v.* ]]; then | ||
echo "ARCADIA_RLEASE_TAG=kubeagi/arcadia:$TAG" >> "$GITHUB_OUTPUT" | ||
echo "DATA-PPRCESSING_RLEASE_TAG=kubeagi/data-processing:$TAG" >> "$GITHUB_OUTPUT" | ||
fi | ||
env: | ||
TAG: ${{ steps.set-env.outputs.TAG }} | ||
- name: Build and push | ||
id: push | ||
uses: docker/build-push-action@v5 | ||
|
@@ -54,9 +65,9 @@ jobs: | |
platforms: linux/amd64,linux/arm64 | ||
tags: | | ||
kubeagi/arcadia:latest | ||
kubeagi/arcadia:${{ steps.set-env.outputs.TAG }} | ||
kubeagi/arcadia:v${{ steps.set-env.outputs.DATE }}-${{ steps.short-sha.outputs.sha }} | ||
kubeagi/arcadia:${{ steps.set-env.outputs.TAG }}-${{ steps.set-env.outputs.DATE }}-${{ steps.short-sha.outputs.sha }} | ||
${{ steps.set-release-tags.outputs.ARCADIA_RLEASE_TAG }} | ||
push: true | ||
build-args: | | ||
GO_VER=${{ env.GO_VER }} | ||
|
@@ -72,7 +83,7 @@ jobs: | |
platforms: linux/amd64,linux/arm64 | ||
tags: | | ||
kubeagi/data-processing:latest | ||
kubeagi/data-processing:${{ steps.set-env.outputs.TAG }} | ||
kubeagi/data-processing:v${{ steps.set-env.outputs.DATE }}-${{ steps.short-sha.outputs.sha }} | ||
kubeagi/data-processing:${{ steps.set-env.outputs.TAG }}-${{ steps.set-env.outputs.DATE }}-${{ steps.short-sha.outputs.sha }} | ||
${{ steps.set-env.outputs.DATA-PPRCESSING_RLEASE_TAG }} | ||
push: true |
This file contains 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,29 @@ | ||
name: goreleaser | ||
|
||
on: | ||
push: | ||
# run only against tags. | ||
tags: | ||
- 'v*' | ||
permissions: | ||
contents: write | ||
# packages: write | ||
# issues: write | ||
|
||
jobs: | ||
goreleaser: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
- run: git fetch --force --tags | ||
- uses: goreleaser/goreleaser-action@v5 | ||
with: | ||
# either 'goreleaser' (default) or 'goreleaser-pro': | ||
distribution: goreleaser | ||
version: latest | ||
args: release --clean | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
This file contains 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,51 @@ | ||
# Make sure to check the documentation at https://goreleaser.com | ||
git: | ||
ignore_tags: | ||
- "arcadia-*" | ||
- "component-store-*" | ||
- "llm-worker-*" | ||
- "jupyterlab-*" | ||
builds: | ||
- skip: true | ||
snapshot: | ||
name_template: "{{ incpatch .Version }}-next" | ||
changelog: | ||
sort: asc | ||
use: github | ||
groups: | ||
- title: New Features | ||
regexp: "^.*feat[(\\w)]*:+.*$" | ||
order: 0 | ||
- title: 'Bug Fixes' | ||
regexp: "^.*fix[(\\w)]*:+.*$" | ||
order: 1 | ||
- title: Others | ||
order: 999 | ||
filters: | ||
exclude: | ||
- '^Merge pull request' | ||
release: | ||
draft: true | ||
replace_existing_draft: false | ||
mode: append | ||
header: | | ||
## {{.ProjectName}}-v{{.Version}} | ||
Welcome to this new release! | ||
### Images built for this release: | ||
- `kubeagi/arcadia:v{{ .Version }}` | ||
- `kubeagi/data-processing:v{{ .Version }}` | ||
### Breaking Changes: | ||
None | ||
### Feature summary 🚀 🚀 🚀 | ||
TODO | ||
footer: | | ||
## Thanks to our Contributors! | ||
Thank you to everyone who contributed to {{.Tag}}! ❤️ | ||
And thank you very much to everyone else not listed here who contributed in other ways like filing issues, giving feedback, testing fixes, helping users in slack, etc. 🙏 | ||
name_template: "v{{.Version}}" |