generated from kyma-project/template-repository
-
Notifications
You must be signed in to change notification settings - Fork 16
45 lines (39 loc) · 1.44 KB
/
push-e2e-upgrade-test.yaml
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
name: post-e2e-upgrade-test
on:
pull_request:
branches: [ "main" ]
paths-ignore:
- 'docs/**'
- '**.md'
- 'sec-scanners-config.yaml'
jobs:
get-latest-release:
runs-on: ubuntu-latest
outputs:
latest_release_tag: ${{ steps.get-latest-release-tag.outputs.latest_release_tag }}
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Get latest release tag
id: get-latest-release-tag
run: |
latest-rel-tag=$(make -C hack/ci/ get-latest-release-tag)
echo "Output [$latest-rel-tag]"
echo "latest_release_tag=$latest-rel-tag" >> "$GITHUB_OUTPUT"
second_job:
needs: get-latest-release
runs-on: ubuntu-latest
steps:
- name: Print latest release tag
run: echo "latest_release_tag=${{ needs.get-latest-release.outputs.latest_release_tag }}"
upgrade-test:
uses: ./.github/workflows/run-upgrade-tests-reusable.yaml
needs: get-latest-release
with:
pre-upgrade-image: europe-docker.pkg.dev/kyma-project/prod/eventing-manager:${{ needs.get-latest-release.outputs.latest_release_tag }}
post-upgrade-image: europe-docker.pkg.dev/kyma-project/dev/eventing-manager:main
pre-upgrade-branch: ${{ needs.get-latest-release.outputs.latest_release_tag }}
post-upgrade-branch: main
build-job-name: pull-eventing-manager-build
commit-sha: ${{ github.event.pull_request.head.sha }}
secrets: inherit