diff --git a/lib/gcp_ci.sh b/lib/gcp_ci.sh index 2663151f..a2de1926 100755 --- a/lib/gcp_ci.sh +++ b/lib/gcp_ci.sh @@ -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