-
Notifications
You must be signed in to change notification settings - Fork 17
47 lines (43 loc) · 2.01 KB
/
e2e-tests.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
name: End-to-end tests
on:
push:
branches:
- "*"
tags:
- "v*"
pull_request:
branches:
- "main"
jobs:
images:
name: "Fetch container images used in the test"
runs-on: ubuntu-latest
outputs:
controller-image-repository: ${{ steps.get-controller.outputs.controller-image-repository }}
controller-image-tag: ${{ steps.get-controller.outputs.controller-image-tag }}
policy-server-repository: ${{ steps.get-policy-server.outputs.policy-server-repository }}
policy-server-tag: ${{ steps.get-policy-server.outputs.policy-server-tag }}
steps:
- name: "Checkout repository"
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- name: "Get controller container image"
id: get-controller
shell: bash
run: |
echo "controller-image-repository=$(helm show values charts/kubewarden-controller | yq '.global.cattle.systemDefaultRegistry + "/" + .image.repository')" >> $GITHUB_OUTPUT
echo "controller-image-tag=$(helm show values charts/kubewarden-controller | yq '.image.tag')" >> $GITHUB_OUTPUT
- name: "Get policy server container image"
id: get-policy-server
shell: bash
run: |
echo "policy-server-repository=$(helm show values charts/kubewarden-defaults | yq '.global.cattle.systemDefaultRegistry + "/" + .policyServer.image.repository')" >> $GITHUB_OUTPUT
echo "policy-server-tag=$(helm show values charts/kubewarden-defaults | yq '.policyServer.image.tag')" >> $GITHUB_OUTPUT
run-e2e-tests:
name: "Tests"
needs: [images]
uses: kubewarden/kubewarden-end-to-end-tests/.github/workflows/e2e-tests.yml@main
with:
controller-image-repository: ${{ needs.images.outputs.controller-image-repository }}
controller-image-tag: ${{ needs.images.outputs.controller-image-tag }}
policy-server-repository: ${{ needs.images.outputs.policy-server-repository }}
policy-server-tag: ${{ needs.images.outputs.policy-server-tag }}