Skip to content

Latest commit

 

History

History

fe-build-image

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

FE Build Image

Build and push front-end image for deploy

Usage

- name: Build Image
  uses: byzanteam/jet-actions/fe-build-image@main
  with:
    registries: |-
      ${{ secrets.ALIYUN_SKYLARK_REGISTRY }}
      ghcr.io,byzanteam,${{ github.repository_owner }},${{ github.token }}
    context: .
    dockerfile: ./deploy/Dockerfile
    build-args: |
      SOME_CUSTOM_BUILD_ARG=xxx
    cache_type: registry
    image_name: my_image

registries 参数格式

$registry,$namespace,$username,$password(以 , 分割)

每个 repo 提供两个 registry 相关的 secret

  1. ${{ secrets.ALIYUN_SKYLARK_REGISTRY }}skylark 相关的项目使用
  2. ${{ secrets.ALIYUN_JET_REGISTRY }}jet 相关的项目使用
registries: |-
  ghcr.io,byzanteam,${{ github.repository_owner }},${{ github.token }}

cache_type 可选值

  1. 使用 self hosted 时,必须指定 cache_typelocal
  2. 使用 Github hosted 时可以不指定或指定 cache_typeregistrygha
cache_type: local

注:请将 cache_type 的值更改至 registry, localgha 将移除

迁移样例

Byzanteam/jet-autoflow-example#2