diff --git a/.flux.yaml b/.flux.yaml index d547f515..a614ce0f 100644 --- a/.flux.yaml +++ b/.flux.yaml @@ -54,6 +54,9 @@ spec: author: name: Flux - Pipeline image update email: ci@biomage.net + update: + strategy: Setters + path: FILLED_IN_BY_CI --- apiVersion: helm.toolkit.fluxcd.io/v2beta1 kind: HelmRelease diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index d7dcfe8f..b3bdffe6 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -273,6 +273,7 @@ jobs: export IMAGE_POLICY_KEY="range" export IMAGE_POLICY_VALUE=">=0.0.0" export MEMORY_REQUEST="29Gi" + export MANIFEST_PATH="./production" fi # Deployment config for `staging-default` @@ -289,6 +290,7 @@ jobs: export IMAGE_POLICY_KEY="order" export IMAGE_POLICY_VALUE="asc" export MEMORY_REQUEST="29Gi" + export MANIFEST_PATH="./staging" fi # Deployment config for other staging env i.e. non `default` @@ -314,6 +316,7 @@ jobs: export IMAGE_POLICY_KEY="order" export IMAGE_POLICY_VALUE="asc" export MEMORY_REQUEST="4Gi" + export MANIFEST_PATH="./staging" fi echo "::set-output name=sandbox-id::$SANDBOX_ID" @@ -341,6 +344,7 @@ jobs: select(di == 3).spec.policy.[strenv(IMAGE_POLICY_TYPE)].[strenv(IMAGE_POLICY_KEY)] = strenv(IMAGE_POLICY_VALUE) | select(di == 4).metadata.name = strenv(DEPLOYMENT_NAME) + "-image-update" | select(di == 4).metadata.namespace = strenv(NAMESPACE) | + select(di == 4).spec.update.path = strenv(MANIFEST_PATH) | select(di == 5).metadata.name = strenv(DEPLOYMENT_NAME) | select(di == 5).metadata.namespace = strenv(NAMESPACE) | select(di == 5).metadata.labels.sandboxId = strenv(SANDBOX_ID) |