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:
Tianxin Dong
2022-12-20 17:28:01 +08:00
committed by GitHub
parent 8798371454
commit a5a1a2ed15
8 changed files with 160 additions and 46 deletions

View File

@@ -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:

View File

@@ -12,4 +12,5 @@ spec:
type: clean-jobs
properties:
labelSelector:
"my-label": my-value
"my-label": my-value
```