From 4740cf442fe401f6e1214c5c61229a357b02db32 Mon Sep 17 00:00:00 2001 From: John Call Date: Thu, 11 Jan 2024 08:26:51 -0700 Subject: [PATCH] Parameterize GIT_BRANCH in build-template.yaml "master" branch does not exist. Following README.adoc build instructions fails with error: fatal: couldn't find remote ref master add a new parameter for GIT_BRANCH and set the default value to "main" --- build-template.yaml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/build-template.yaml b/build-template.yaml index 47ac011..958b0d8 100644 --- a/build-template.yaml +++ b/build-template.yaml @@ -19,6 +19,8 @@ parameters: value: quay.io/openshifthomeroom/workshop-dashboard:5.0.1 - name: GIT_REPO value: https://github.com/agonzalezrh/roadshow_ocpvirt_instructions + - name: GIT_BRANCH + value: main objects: - apiVersion: image.openshift.io/v1 @@ -37,7 +39,7 @@ objects: name: ${NAME}:latest source: git: - ref: master + ref: ${GIT_BRANCH} uri: ${GIT_REPO} type: Git strategy: