Skip to content

Commit

Permalink
chore: 调整前端 repo 打包 workflow
Browse files Browse the repository at this point in the history
修改 workflow 文件中 run-on 字段变为 image-builder,使用自建的 self hosted 进行打包
修改 checkout actions 版本为 v3
修改 build 步骤中参数:
- 删除 github_token 变量
- 添加 registries 变量:
  - skylark 相关项目使用 `${{ secrets.ALIYUN_SKYLARK_REGISTRY }}` 变量
  - jet 相关项目使用 `${{ secrets.ALIYUN_JET_REGISTRY }}` 变量
  • Loading branch information
YkeLit committed Apr 28, 2023
1 parent 5505b1a commit 72ca7f2
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/build-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,15 @@ on:

jobs:
build-and-push-image:
runs-on: ubuntu-latest
runs-on: image-builder
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: Build and push
uses: byzanteam/jet-actions/fe-build-image@main
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
registries: |-
${{ secrets.ALIYUN_SKYLARK_REGISTRY }}
ghcr.io,byzanteam,${{ github.repository_owner }},${{ github.token }}
cache_type: local

0 comments on commit 72ca7f2

Please sign in to comment.