This repository has been archived by the owner on Jan 3, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
161 lines (149 loc) · 5.68 KB
/
upgrade-tests-coordinator.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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
---
name: Upgrade Tests Coordinator
on:
workflow_dispatch:
schedule:
- cron: '0 0 1 * *' # At 00:00 on day-of-month 1
permissions:
contents: write
jobs:
upgrade-tests-invoke-0_14_0-0_15_0:
uses: ./.github/workflows/upgrade-tests.yaml
with:
charts-ver-prev: "0.14.0"
charts-prev-extra-args: "--set storageClass.name= --set storageClass.create=false"
charts-ver: "0.15.0"
charts-extra-args: ""
image-tag-prev: "0.14.0"
image-tag: "0.15.0"
release: "s3gw"
namespace: "s3gw"
expected-revision-on-upgrade: "2"
upgrade-tests-invoke-0_14_0-0_16_0:
uses: ./.github/workflows/upgrade-tests.yaml
with:
charts-ver-prev: "0.14.0"
charts-prev-extra-args: "--set storageClass.name= --set storageClass.create=false"
charts-ver: "0.16.0"
charts-extra-args: ""
image-tag-prev: "0.14.0"
image-tag: "0.16.0"
release: "s3gw"
namespace: "s3gw"
expected-revision-on-upgrade: "2"
upgrade-tests-invoke-0_15_0-0_16_0:
uses: ./.github/workflows/upgrade-tests.yaml
with:
charts-ver-prev: "0.15.0"
charts-prev-extra-args: "--set storageClass.name= --set storageClass.create=false"
charts-ver: "0.16.0"
charts-extra-args: ""
image-tag-prev: "0.15.0"
image-tag: "0.16.0"
release: "s3gw"
namespace: "s3gw"
expected-revision-on-upgrade: "2"
upgrade-tests-result-0_14_0-0_15_0:
env:
CI_COMMIT_MESSAGE: Set upgrade-tests results for 0_14_0-0_15_0
CI_COMMIT_AUTHOR: Continuous Integration
runs-on: ubuntu-latest
needs:
- upgrade-tests-invoke-0_14_0-0_15_0
steps:
- name: Checkout
uses: actions/checkout@v3
with:
ref: main
- name: Process Success
if: needs.upgrade-tests-invoke-0_14_0-0_15_0.outputs.result == 0
run: |
cp -f ./assets/OK.svg ./assets/tests/u0.14.0_0.15.0.svg
date +%s%N > ./assets/tests/u0.14.0_0.15.0.ts
git config --global user.name "${{ env.CI_COMMIT_AUTHOR }}"
git config --global user.email '[email protected]'
git add ./assets/tests/u0.14.0_0.15.0.svg
git add ./assets/tests/u0.14.0_0.15.0.ts
git commit -m "${{ env.CI_COMMIT_MESSAGE }}"
git push
- name: Process Failure
if: needs.upgrade-tests-invoke-0_14_0-0_15_0.outputs.result != 0
run: |
cp -f ./assets/KO.svg ./assets/tests/u0.14.0_0.15.0.svg
date +%s%N > ./assets/tests/u0.14.0_0.15.0.ts
git config --global user.name "${{ env.CI_COMMIT_AUTHOR }}"
git config --global user.email '[email protected]'
git add ./assets/tests/u0.14.0_0.15.0.svg
git add ./assets/tests/u0.14.0_0.15.0.ts
git commit -m "${{ env.CI_COMMIT_MESSAGE }}"
git push
upgrade-tests-result-0_14_0-0_16_0:
env:
CI_COMMIT_MESSAGE: Set upgrade-tests results for 0_14_0-0_16_0
CI_COMMIT_AUTHOR: Continuous Integration
runs-on: ubuntu-latest
needs:
- upgrade-tests-invoke-0_14_0-0_16_0
- upgrade-tests-result-0_14_0-0_15_0
steps:
- name: Checkout
uses: actions/checkout@v3
with:
ref: main
- name: Process Success
if: needs.upgrade-tests-invoke-0_14_0-0_16_0.outputs.result == 0
run: |
cp -f ./assets/OK.svg ./assets/tests/u0.14.0_0.16.0.svg
date +%s%N > ./assets/tests/u0.14.0_0.16.0.ts
git config --global user.name "${{ env.CI_COMMIT_AUTHOR }}"
git config --global user.email '[email protected]'
git add ./assets/tests/u0.14.0_0.16.0.svg
git add ./assets/tests/u0.14.0_0.16.0.ts
git commit -m "${{ env.CI_COMMIT_MESSAGE }}"
git push
- name: Process Failure
if: needs.upgrade-tests-invoke-0_14_0-0_16_0.outputs.result != 0
run: |
cp -f ./assets/KO.svg ./assets/tests/u0.14.0_0.16.0.svg
date +%s%N > ./assets/tests/u0.14.0_0.16.0.ts
git config --global user.name "${{ env.CI_COMMIT_AUTHOR }}"
git config --global user.email '[email protected]'
git add ./assets/tests/u0.14.0_0.16.0.svg
git add ./assets/tests/u0.14.0_0.16.0.ts
git commit -m "${{ env.CI_COMMIT_MESSAGE }}"
git push
upgrade-tests-result-0_15_0-0_16_0:
env:
CI_COMMIT_MESSAGE: Set upgrade-tests results for 0_15_0-0_16_0
CI_COMMIT_AUTHOR: Continuous Integration
runs-on: ubuntu-latest
needs:
- upgrade-tests-invoke-0_15_0-0_16_0
- upgrade-tests-result-0_14_0-0_16_0
steps:
- name: Checkout
uses: actions/checkout@v3
with:
ref: main
- name: Process Success
if: needs.upgrade-tests-invoke-0_15_0-0_16_0.outputs.result == 0
run: |
cp -f ./assets/OK.svg ./assets/tests/u0.15.0_0.16.0.svg
date +%s%N > ./assets/tests/u0.15.0_0.16.0.ts
git config --global user.name "${{ env.CI_COMMIT_AUTHOR }}"
git config --global user.email '[email protected]'
git add ./assets/tests/u0.15.0_0.16.0.svg
git add ./assets/tests/u0.15.0_0.16.0.ts
git commit -m "${{ env.CI_COMMIT_MESSAGE }}"
git push
- name: Process Failure
if: needs.upgrade-tests-invoke-0_15_0-0_16_0.outputs.result != 0
run: |
cp -f ./assets/KO.svg ./assets/tests/u0.15.0_0.16.0.svg
date +%s%N > ./assets/tests/u0.15.0_0.16.0.ts
git config --global user.name "${{ env.CI_COMMIT_AUTHOR }}"
git config --global user.email '[email protected]'
git add ./assets/tests/u0.15.0_0.16.0.svg
git add ./assets/tests/u0.15.0_0.16.0.ts
git commit -m "${{ env.CI_COMMIT_MESSAGE }}"
git push