From 5e1c93a1673a9122122e6fc0491bf78295cdad4e Mon Sep 17 00:00:00 2001 From: Stefan Prodan Date: Fri, 15 Jan 2021 12:03:47 +0200 Subject: [PATCH] Add e2e tests for image repository and policy Signed-off-by: Stefan Prodan --- .github/workflows/e2e.yaml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/.github/workflows/e2e.yaml b/.github/workflows/e2e.yaml index 97af7e78..e7d2e19a 100644 --- a/.github/workflows/e2e.yaml +++ b/.github/workflows/e2e.yaml @@ -146,6 +146,20 @@ jobs: --chart=podinfo \ --chart-version="5.0.x" \ --service-account=dev-team + - name: flux create image repository + run: | + ./bin/flux create image repository podinfo \ + --image=ghcr.io/stefanprodan/podinfo \ + --interval=1m + - name: flux create image policy + run: | + ./bin/flux create image policy podinfo \ + --image-ref=podinfo \ + --interval=1m \ + --semver=5.0.x + - name: flux get image policy + run: | + ./bin/flux get image policy podinfo | grep '5.0.3' - name: flux2-kustomize-helm-example run: | ./bin/flux create source git flux-system \