Skip to content
This repository has been archived by the owner on Jan 3, 2024. It is now read-only.

Upgrade Tests Coordinator #10

Upgrade Tests Coordinator

Upgrade Tests Coordinator #10

---
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