From be5287451dffcfb817cc42fa7b68ed0b655e32c9 Mon Sep 17 00:00:00 2001 From: Kuan Fan Date: Thu, 12 Dec 2024 16:59:22 -0800 Subject: [PATCH] rollback trigger --- openshift/templates/backend/backend-bc.yaml | 4 ++++ openshift/templates/frontend/frontend-bc-docker.yaml | 4 ++++ openshift/templates/task-queue/task-queue-bc.yaml | 4 ++++ openshift/templates/vinpower/vinpower-bc.yaml | 5 ++++- 4 files changed, 16 insertions(+), 1 deletion(-) diff --git a/openshift/templates/backend/backend-bc.yaml b/openshift/templates/backend/backend-bc.yaml index 64c4b91e..5299ee8b 100644 --- a/openshift/templates/backend/backend-bc.yaml +++ b/openshift/templates/backend/backend-bc.yaml @@ -90,5 +90,9 @@ objects: forcePull: true noCache: true type: Source + triggers: + - imageChange: {} + type: ImageChange + - type: ConfigChange status: lastVersion: 0 \ No newline at end of file diff --git a/openshift/templates/frontend/frontend-bc-docker.yaml b/openshift/templates/frontend/frontend-bc-docker.yaml index 9665bc6c..50bd9b25 100644 --- a/openshift/templates/frontend/frontend-bc-docker.yaml +++ b/openshift/templates/frontend/frontend-bc-docker.yaml @@ -75,5 +75,9 @@ objects: forcePull: true type: Docker successfulBuildsHistoryLimit: 5 + triggers: + - imageChange: {} + type: ImageChange + - type: ConfigChange status: lastVersion: 0 \ No newline at end of file diff --git a/openshift/templates/task-queue/task-queue-bc.yaml b/openshift/templates/task-queue/task-queue-bc.yaml index 9dfe8d42..6fde26cb 100644 --- a/openshift/templates/task-queue/task-queue-bc.yaml +++ b/openshift/templates/task-queue/task-queue-bc.yaml @@ -75,5 +75,9 @@ objects: forcePull: true type: Docker successfulBuildsHistoryLimit: 5 + triggers: + - imageChange: {} + type: ImageChange + - type: ConfigChange status: lastVersion: 0 \ No newline at end of file diff --git a/openshift/templates/vinpower/vinpower-bc.yaml b/openshift/templates/vinpower/vinpower-bc.yaml index a5d029cf..496208fb 100644 --- a/openshift/templates/vinpower/vinpower-bc.yaml +++ b/openshift/templates/vinpower/vinpower-bc.yaml @@ -72,4 +72,7 @@ objects: noCache: true forcePull: true type: Docker - + triggers: + - imageChange: {} + type: ImageChange + - type: ConfigChange