建议 kubesphere devops 能够兼容github action的yml配置
当前很多项目已经在使用github action,如果能够简单的只修改每个步骤中的uses: 配置脚本从github改为kubesphere提供的脚本,迁移工作会非常简单,减少很多学习成本。
https://github.com/kubesphere-sigs/pipeline-templates
有看见社区新建了相应的脚本仓库,存储社区提供的编译脚本,希望多了解一些这方面未来的计划。
name: release
on:
push:
tags:
- '*'
jobs:
build-macos-x86_64:
runs-on: macos-latest
env:
MACOS_APP_RELEASE_PATH: frontend/app_flowy/product/${{ github.ref_name }}/macos/Release
MACOS_X86_ZIP_NAME: Appflowy-macos-x86_64.zip
steps:
- name: Checkout
uses: actions/checkout@v2 #github官方提供的actions简单改为kubesphere提供的脚本
- name: Setup environment - Rust and Cargo
uses: actions-rs/toolchain@v1 #其他组织实现的脚本很多可直接使用,如有需要社区也可组织fork后对kubesphere devops进行适配
with:
toolchain: 'stable-2022-01-20'
- name: Setup environment - Flutter
uses: subosito/flutter-action@v2 #其他组织实现的脚本很多可直接使用,如有需要社区也可组织fork后对kubesphere devops进行适配
with:
channel: 'stable'
flutter-version: '3.0.0'