需要克隆一些repo,比如:git clone abc.git
然后将上下文切换到abc
,然后使用abc
内的dockerfile使用传递自定义ARGS
的skaffold进行构建。
有可能通过Skafold实现这一点吗
例如:
- name: test-build
build:
tagPolicy:
envTemplate:
template: 1.0.0
artifacts:
- image: dockerhub.io/test-build
requires:
command: ["git", "clone", "abc.git"]
context: ./abc
这是我使用skaffold自定义构建的一种方法
- name: test-build
build:
tagPolicy:
envTemplate:
template: 1.0.0
artifacts:
- image: dockerhub.io/test-build
custom:
buildCommand: docker build github.com/abc.git#v1