我可以使用Skafold构建的源代码来控制docker文件吗



需要克隆一些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

最新更新