aboutsummaryrefslogtreecommitdiffstats
path: root/syz-cluster/workflow
diff options
context:
space:
mode:
authorAleksandr Nogikh <nogikh@google.com>2025-02-24 14:30:04 +0100
committerAleksandr Nogikh <nogikh@google.com>2025-02-26 15:09:27 +0000
commit68aa75abe16fb593ee02b5a37783371c3dfc24b2 (patch)
tree5e0880ae57b64a7ba472ca579f9f316ed264959c /syz-cluster/workflow
parentd34966d146f584d390b49f213d1fccd59548dc6d (diff)
syz-cluster: make image prefix and tag configurable
Accept IMAGE_PREFIX and IMAGE_TAG parameters that allow to reuse the Makefile and a lot of k8s configurations both for local and prod environments. Refactor Makefile: define build-* and push-* rules, use templates to avoid repetition.
Diffstat (limited to 'syz-cluster/workflow')
-rw-r--r--syz-cluster/workflow/boot-step/workflow-template.yaml2
-rw-r--r--syz-cluster/workflow/build-step/workflow-template.yaml2
-rw-r--r--syz-cluster/workflow/fuzz-step/workflow-template.yaml2
-rw-r--r--syz-cluster/workflow/triage-step/workflow-template.yaml2
4 files changed, 4 insertions, 4 deletions
diff --git a/syz-cluster/workflow/boot-step/workflow-template.yaml b/syz-cluster/workflow/boot-step/workflow-template.yaml
index adbe2800d..241efa85c 100644
--- a/syz-cluster/workflow/boot-step/workflow-template.yaml
+++ b/syz-cluster/workflow/boot-step/workflow-template.yaml
@@ -24,7 +24,7 @@ spec:
- name: kernel
path: /base
container:
- image: boot-step-local
+ image: ${IMAGE_PREFIX}boot-step:${IMAGE_TAG}
imagePullPolicy: IfNotPresent
command: ["/bin/boot-step"]
args: [
diff --git a/syz-cluster/workflow/build-step/workflow-template.yaml b/syz-cluster/workflow/build-step/workflow-template.yaml
index 0a3282ae8..9d3f3485c 100644
--- a/syz-cluster/workflow/build-step/workflow-template.yaml
+++ b/syz-cluster/workflow/build-step/workflow-template.yaml
@@ -52,7 +52,7 @@ spec:
capabilities:
add: ["SYS_ADMIN"]
container:
- image: build-step-local
+ image: ${IMAGE_PREFIX}build-step:${IMAGE_TAG}
imagePullPolicy: IfNotPresent
command: ["/bin/build-step"]
args: [
diff --git a/syz-cluster/workflow/fuzz-step/workflow-template.yaml b/syz-cluster/workflow/fuzz-step/workflow-template.yaml
index abdb4eadc..9fd2abecd 100644
--- a/syz-cluster/workflow/fuzz-step/workflow-template.yaml
+++ b/syz-cluster/workflow/fuzz-step/workflow-template.yaml
@@ -23,7 +23,7 @@ spec:
path: /patched
timeout: 4h
container:
- image: fuzz-step-local
+ image: ${IMAGE_PREFIX}fuzz-step:${IMAGE_TAG}
imagePullPolicy: IfNotPresent
command: ["/bin/fuzz-step"]
args: [
diff --git a/syz-cluster/workflow/triage-step/workflow-template.yaml b/syz-cluster/workflow/triage-step/workflow-template.yaml
index 270c6a0fd..d55430842 100644
--- a/syz-cluster/workflow/triage-step/workflow-template.yaml
+++ b/syz-cluster/workflow/triage-step/workflow-template.yaml
@@ -38,7 +38,7 @@ spec:
capabilities:
add: ["SYS_ADMIN"]
container:
- image: triage-step-local
+ image: ${IMAGE_PREFIX}triage-step:${IMAGE_TAG}
imagePullPolicy: IfNotPresent
command: ["/bin/triage-step"]
args: [