Skip to content

Commit

Permalink
adding rc images to workflow if needed
Browse files Browse the repository at this point in the history
Signed-off-by: Hung Nguyen <hung.tran.nguyen.585@gmail.com>
  • Loading branch information
HN23 committed Dec 13, 2024
1 parent a4e50df commit e2da5d5
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 2 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/openshift-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,15 @@ jobs:
env:
KUBECONFIG: ./tmp/kubeconfig

- name: Update to rc image if needed
if: ${{ github.event.pull_request.base.ref == 'rc5x' || github.ref_name == 'rc5x' }}
run: |
echo "Branch: ${{ github.event.pull_request.head.ref }}"
echo 'image: "docker.io/anchore/enterprise-dev:rc"' >> stable/enterprise/ci/openshift-test.yaml
echo 'ui:' >> stable/enterprise/ci/openshift-test.yaml
echo ' image: "docker.io/anchore/anchore-on-prem-ui-dev:rc"' >> stable/enterprise/ci/openshift-test.yaml
echo "Appended to stable/enterprise/ci/openshift-test.yaml"
- name: Run chart-testing
if: steps.list-changed.outputs.CHANGED == 'true'
run: |
Expand Down
9 changes: 9 additions & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,15 @@ jobs:
helm install engine anchore/anchore-engine --namespace anchore --wait
kubectl --namespace anchore get pods
- name: Update to rc image if needed
if: ${{ github.event.pull_request.base.ref == 'rc5x' || github.ref_name == 'rc5x' }}
run: |
echo "Branch: ${{ github.event.pull_request.head.ref }}"
echo 'image: "docker.io/anchore/enterprise-dev:rc"' >> stable/enterprise/ci/rc-values.yaml
echo 'ui:' >> stable/enterprise/ci/rc-values.yaml
echo ' image: "docker.io/anchore/anchore-on-prem-ui-dev:rc"' >> stable/enterprise/ci/rc-values.yaml
echo "Appended to stable/enterprise/ci/rc-values.yaml"
- name: Run chart-testing
if: steps.list-changed.outputs.CHANGED == 'true'
run: ct install --config ct-config.yaml --helm-extra-args "--timeout 600s"
4 changes: 2 additions & 2 deletions stable/enterprise/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: v2
name: enterprise
version: "3.2.4"
appVersion: "5.12.0"
version: "3.2.5"
appVersion: "5.13.0"
kubeVersion: 1.23.x - 1.31.x || 1.23.x-x - 1.31.x-x
description: |
Anchore Enterprise is a complete container security workflow solution for professional teams. Easily integrating with CI/CD systems,
Expand Down

0 comments on commit e2da5d5

Please sign in to comment.