Skip to content

Commit

Permalink
chore(kubepanel): move kubepanel to providers and modify related conf…
Browse files Browse the repository at this point in the history
…ig (#4554)

* style(kubepanel): adjust style

* chore: move kubepanel from plugin to provider

* chore: remove unused scripts

* chore(frontend&kubepanel):  modified build config and package

* chore: modify frontend.yml to build kubepanel
  • Loading branch information
mlhiter authored Mar 5, 2024
1 parent a63d82f commit 1358c41
Show file tree
Hide file tree
Showing 229 changed files with 4,661 additions and 8,814 deletions.
76 changes: 38 additions & 38 deletions .github/workflows/frontend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,48 +6,48 @@ on:
workflow_call:
inputs:
push_image:
description: "Push image"
description: 'Push image'
required: false
type: boolean
default: false
push_image_tag:
description: "Push image tag"
default: "latest"
description: 'Push image tag'
default: 'latest'
required: false
type: string
workflow_dispatch:
inputs:
push_image:
description: "Push image"
description: 'Push image'
required: false
type: boolean
default: false
push_image_tag:
description: "Push image tag"
default: "latest"
description: 'Push image tag'
default: 'latest'
required: false
type: string
push:
branches: ["main"]
branches: ['main']
paths:
- "frontend/desktop/**"
- "frontend/providers/**"
- ".github/workflows/frontend.yml"
- "!**/*.md"
- "!**/*.yaml"
- 'frontend/desktop/**'
- 'frontend/providers/**'
- '.github/workflows/frontend.yml'
- '!**/*.md'
- '!**/*.yaml'
pull_request:
branches: ["*"]
branches: ['*']
paths:
- "frontend/desktop/**"
- "frontend/providers/**"
- ".github/workflows/frontend.yml"
- "!**/*.md"
- "!**/*.yaml"
- 'frontend/desktop/**'
- 'frontend/providers/**'
- '.github/workflows/frontend.yml'
- '!**/*.md'
- '!**/*.yaml'

env:
# Common versions
GO_VERSION: "1.20"
DEFAULT_OWNER: "labring"
GO_VERSION: '1.20'
DEFAULT_OWNER: 'labring'

jobs:
image-build:
Expand All @@ -65,7 +65,7 @@ jobs:
providers/dbprovider,
providers/costcenter,
providers/objectstorage,
plugins/kubepanel,
providers/kubepanel,
desktop,
]
steps:
Expand Down Expand Up @@ -162,7 +162,7 @@ jobs:
providers/dbprovider,
providers/costcenter,
providers/objectstorage,
plugins/kubepanel,
providers/kubepanel,
desktop,
]
steps:
Expand Down Expand Up @@ -238,26 +238,26 @@ jobs:
with:
version: v0.0.8-rc1
env:
GH_TOKEN: "${{ secrets.GH_PAT }}"
SEALOS_TYPE: "issue_renew"
SEALOS_ISSUE_TITLE: "[DaylyReport] Auto build for sealos"
SEALOS_ISSUE_BODYFILE: "scripts/ISSUE_RENEW.md"
SEALOS_ISSUE_LABEL: "dayly-report"
SEALOS_ISSUE_TYPE: "day"
SEALOS_ISSUE_REPO: "labring-actions/cluster-image"
SEALOS_COMMENT_BODY: "/imagesync ${{ steps.prepare.outputs.cluster_image }}"
GH_TOKEN: '${{ secrets.GH_PAT }}'
SEALOS_TYPE: 'issue_renew'
SEALOS_ISSUE_TITLE: '[DaylyReport] Auto build for sealos'
SEALOS_ISSUE_BODYFILE: 'scripts/ISSUE_RENEW.md'
SEALOS_ISSUE_LABEL: 'dayly-report'
SEALOS_ISSUE_TYPE: 'day'
SEALOS_ISSUE_REPO: 'labring-actions/cluster-image'
SEALOS_COMMENT_BODY: '/imagesync ${{ steps.prepare.outputs.cluster_image }}'

- name: Renew issue and Sync Images for ${{ steps.prepare.outputs.latest_cluster_image }}
uses: labring/[email protected]
if: ${{ github.repository_owner == env.DEFAULT_OWNER }}
with:
version: v0.0.8-rc1
env:
GH_TOKEN: "${{ secrets.GH_PAT }}"
SEALOS_TYPE: "issue_renew"
SEALOS_ISSUE_TITLE: "[DaylyReport] Auto build for sealos"
SEALOS_ISSUE_BODYFILE: "scripts/ISSUE_RENEW.md"
SEALOS_ISSUE_LABEL: "dayly-report"
SEALOS_ISSUE_TYPE: "day"
SEALOS_ISSUE_REPO: "labring-actions/cluster-image"
SEALOS_COMMENT_BODY: "/imagesync ${{ steps.prepare.outputs.latest_cluster_image }}"
GH_TOKEN: '${{ secrets.GH_PAT }}'
SEALOS_TYPE: 'issue_renew'
SEALOS_ISSUE_TITLE: '[DaylyReport] Auto build for sealos'
SEALOS_ISSUE_BODYFILE: 'scripts/ISSUE_RENEW.md'
SEALOS_ISSUE_LABEL: 'dayly-report'
SEALOS_ISSUE_TYPE: 'day'
SEALOS_ISSUE_REPO: 'labring-actions/cluster-image'
SEALOS_COMMENT_BODY: '/imagesync ${{ steps.prepare.outputs.latest_cluster_image }}'
1 change: 1 addition & 0 deletions frontend/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ buildTargets := \
providers/template \
providers/cronjob \
providers/license \
providers/kubepanel \
providers/objectstorage

buildTargets-all := $(addprefix image-build-,$(buildTargets))
Expand Down
Loading

0 comments on commit 1358c41

Please sign in to comment.