From fecd777d308308c10a0f2857645627f79277f105 Mon Sep 17 00:00:00 2001 From: Hidde Beydals Date: Tue, 22 Sep 2020 10:36:24 +0200 Subject: [PATCH] ci: update replace pattern to match release zip --- .github/workflows/update.yml | 5 +++-- manifests/bases/notification-controller/kustomization.yaml | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/update.yml b/.github/workflows/update.yml index 21f0e905..b0335bba 100644 --- a/.github/workflows/update.yml +++ b/.github/workflows/update.yml @@ -1,8 +1,9 @@ name: Update Components on: + workflow_dispatch: schedule: - - cron: "*/10 * * * *" + - cron: "0 * * * *" jobs: update-components: @@ -22,7 +23,7 @@ jobs: if [[ "${RELEASE_VERSION}" != "${CURRENT_VERSION}" ]]; then # bump kustomize - sed -i "s/\($1\/.*?ref=\).*/\1${RELEASE_VERSION}/g" "manifests/bases/$1/kustomization.yaml" + sed -i "s/\($1\/archive\/v\).*\(.zip\/\/$1-\).*\(\/config.*\)/\1${RELEASE_VERSION}\2${RELEASE_VERSION}\3/g" "manifests/bases/$1/kustomization.yaml" if [[ ! -z $(go list -m all | grep "github.com/fluxcd/$1/api" | awk '{print $2}') ]]; then # bump go mod diff --git a/manifests/bases/notification-controller/kustomization.yaml b/manifests/bases/notification-controller/kustomization.yaml index dd65b59c..d3784ae1 100644 --- a/manifests/bases/notification-controller/kustomization.yaml +++ b/manifests/bases/notification-controller/kustomization.yaml @@ -2,4 +2,4 @@ apiVersion: kustomize.config.k8s.io/v1beta1 kind: Kustomization resources: - https://github.com/fluxcd/notification-controller/archive/v0.0.10.zip//notification-controller-0.0.10/config/crd -- https://github.com/fluxcd/notification-controller/archive/v0.0.10.zip//notification-controller-0.0.10/config/manager \ No newline at end of file +- https://github.com/fluxcd/notification-controller/archive/v0.0.10.zip//notification-controller-0.0.10/config/manager