Build and push front-end image for deploy
- 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
$registry,$namespace,$username,$password
(以 ,
分割)
每个 repo 提供两个 registry 相关的 secret :
${{ secrets.ALIYUN_SKYLARK_REGISTRY }}
:skylark
相关的项目使用${{ secrets.ALIYUN_JET_REGISTRY }}
:jet
相关的项目使用
registries: |-
ghcr.io,byzanteam,${{ github.repository_owner }},${{ github.token }}
- 使用 self hosted 时,必须指定
cache_type
为local
- 使用 Github hosted 时可以不指定或指定
cache_type
为registry
或gha
cache_type: local
注:请将
cache_type
的值更改至registry
,local
和gha
将移除