updated gcp_ci.sh

pull/2/head
Hari Sekhon 3 years ago
parent 885e5d66e2
commit 1dae560fa7

@ -134,6 +134,7 @@ gcloud_builds_submit(){
}
# yamls contain tag 'latest', we replace this with the build hashref matching the docker images just built as part of the build pipeline
# Better is to use Jenkins to update the kustomization with the hashref as part of a GitOps workflow
replace_latest_with_build(){
local build="$1"
sed -i "s/\\([[:space:]]newTag:[[:space:]]*\"*\\)latest/\\1$build/g" -- kustomization.yaml

Loading…
Cancel
Save