mirror of
https://github.com/kubevela/kubevela.git
synced 2026-02-14 18:10:21 +00:00
Fix: optimize build push image step (#5215)
Signed-off-by: FogDong <dongtianxin.tx@alibaba-inc.com> Signed-off-by: FogDong <dongtianxin.tx@alibaba-inc.com>
This commit is contained in:
@@ -32,14 +32,21 @@ spec:
|
||||
- name: build-push
|
||||
type: build-push-image
|
||||
properties:
|
||||
# use your kaniko executor image like below, if not set, it will use default image gcr.io/kaniko-project/executor:latest
|
||||
# kanikoExecutor: oamdev/kaniko-executor:v1.9.1
|
||||
git: https://github.com/FogDong/simple-web-demo
|
||||
branch: main
|
||||
# use your kaniko executor image like below, if not set, it will use default image oamdev/kaniko-executor:v1.9.1
|
||||
# kanikoExecutor: gcr.io/kaniko-project/executor:latest
|
||||
# you can use context with git and branch or directly specify the context, please refer to https://github.com/GoogleContainerTools/kaniko#kaniko-build-contexts
|
||||
context:
|
||||
git: github.com/FogDong/simple-web-demo
|
||||
branch: main
|
||||
image: fogdong/simple-web-demo:v1
|
||||
# specify your dockerfile, if not set, it will use default dockerfile ./Dockerfile
|
||||
# dockerfile: ./Dockerfile
|
||||
credentials:
|
||||
image:
|
||||
name: image-secret
|
||||
# buildArgs:
|
||||
# - key="value"
|
||||
# platform: linux/arm
|
||||
- name: apply-comp
|
||||
type: apply-component
|
||||
properties:
|
||||
@@ -12,4 +12,5 @@ spec:
|
||||
type: clean-jobs
|
||||
properties:
|
||||
labelSelector:
|
||||
"my-label": my-value
|
||||
"my-label": my-value
|
||||
```
|
||||
Reference in New Issue
Block a user