Skip to content

Commit

Permalink
scope image automation
Browse files Browse the repository at this point in the history
  • Loading branch information
aerlaut committed Dec 6, 2022
1 parent afc4ba2 commit 5fbd66e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .flux.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,9 @@ spec:
author:
name: Flux - Pipeline image update
email: [email protected]
update:
strategy: Setters
path: FILLED_IN_BY_CI
---
apiVersion: helm.toolkit.fluxcd.io/v2beta1
kind: HelmRelease
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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`
Expand All @@ -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`
Expand All @@ -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"
Expand Down Expand Up @@ -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) |
Expand Down

0 comments on commit 5fbd66e

Please sign in to comment.