Skip to content

Commit 76be0c8

Browse files
committed
f
1 parent 960fc3b commit 76be0c8

File tree

1 file changed

+46
-23
lines changed

1 file changed

+46
-23
lines changed

.github/workflows/ci.yaml

Lines changed: 46 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
runs-on: ubuntu-latest
3030
strategy:
3131
matrix:
32-
k0s_version: ['current', '1.29']
32+
k0s_version: ['current', '1.30', '1.29']
3333
steps:
3434
- name: Checkout
3535
uses: actions/checkout@v4
@@ -55,7 +55,7 @@ jobs:
5555
runs-on: ubuntu-latest
5656
strategy:
5757
matrix:
58-
k0s_version: ['current', '1.29']
58+
k0s_version: ['current', '1.30', '1.29']
5959
steps:
6060
- name: Checkout
6161
uses: actions/checkout@v4
@@ -77,7 +77,7 @@ jobs:
7777
runs-on: ubuntu-latest
7878
strategy:
7979
matrix:
80-
k0s_version: ['current', '1.29']
80+
k0s_version: ['current', '1.30', '1.29']
8181
steps:
8282
- name: Checkout
8383
uses: actions/checkout@v4
@@ -115,7 +115,7 @@ jobs:
115115
runs-on: ubuntu-latest
116116
strategy:
117117
matrix:
118-
k0s_version: ['current', '1.29']
118+
k0s_version: ['current', '1.30', '1.29']
119119
steps:
120120
- name: Checkout
121121
uses: actions/checkout@v4
@@ -183,7 +183,7 @@ jobs:
183183
- git-sha
184184
strategy:
185185
matrix:
186-
k0s_version: ['current', '1.29']
186+
k0s_version: ['current', '1.30', '1.29']
187187
type: ['install', 'upgrade']
188188
steps:
189189
- name: Checkout
@@ -299,9 +299,6 @@ jobs:
299299
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
300300
run: |
301301
k0s_majmin_version="$(make print-PREVIOUS_K0S_VERSION | sed 's/v\([0-9]*\.[0-9]*\).*/\1/')"
302-
if [ "$k0s_majmin_version" == "1.28" ]; then
303-
k0s_majmin_version="1.29"
304-
fi
305302
EC_VERSION="$(gh release list --repo replicatedhq/embedded-cluster \
306303
--exclude-drafts --exclude-pre-releases --json name \
307304
--jq '.[] | .name' \
@@ -353,6 +350,12 @@ jobs:
353350
export APP_VERSION="${SHORT_SHA}-previous-stable"
354351
export RELEASE_YAML_DIR=e2e/kots-release-install-stable
355352
./scripts/ci-release-app.sh
353+
354+
# install the 1.30 k0s version to ensure an upgrade occurs
355+
export EC_VERSION="$(git describe --tags --abbrev=4 --match='[0-9]*.[0-9]*.[0-9]*')-1.30-install"
356+
export APP_VERSION="${SHORT_SHA}-1.30-install"
357+
export RELEASE_YAML_DIR=e2e/kots-release-install
358+
./scripts/ci-release-app.sh
356359
357360
# install the 1.29 k0s version to ensure an upgrade occurs
358361
export EC_VERSION="$(git describe --tags --abbrev=4 --match='[0-9]*.[0-9]*.[0-9]*')-1.29-install"
@@ -418,6 +421,12 @@ jobs:
418421
export RELEASE_YAML_DIR=e2e/kots-release-install-stable
419422
./scripts/ci-release-app.sh
420423
424+
# install the 1.30 k0s version to ensure an upgrade occurs
425+
export EC_VERSION="$(git describe --tags --abbrev=4 --match='[0-9]*.[0-9]*.[0-9]*')-1.30-install"
426+
export APP_VERSION="${SHORT_SHA}-1.30-install"
427+
export RELEASE_YAML_DIR=e2e/kots-release-install
428+
./scripts/ci-release-app.sh
429+
421430
# install the previous k0s version to ensure an upgrade occurs
422431
export EC_VERSION="$(git describe --tags --abbrev=4 --match='[0-9]*.[0-9]*.[0-9]*')-1.29-install"
423432
export APP_VERSION="${SHORT_SHA}-1.29-install"
@@ -478,7 +487,7 @@ jobs:
478487
- find-previous-stable
479488
- release-app
480489
env:
481-
# common environment variables
490+
# default environment variables
482491
APP_INSTALL_VERSION: ${{ needs.git-sha.outputs.git_sha }}-current-install
483492
APP_NOOP_VERSION: ${{ needs.git-sha.outputs.git_sha }}-noop
484493
APP_UPGRADE_VERSION: ${{ needs.git-sha.outputs.git_sha }}-current-upgrade
@@ -494,8 +503,6 @@ jobs:
494503
- TestPreflightsNoexec
495504
- TestMaterialize
496505
- TestHostPreflightInBuiltSpec
497-
- TestSingleNodeInstallation
498-
- TestSingleNodeInstallationAlmaLinux8
499506
- TestSingleNodeInstallationDebian11
500507
- TestSingleNodeInstallationDebian12
501508
- TestSingleNodeInstallationCentos9Stream
@@ -519,14 +526,28 @@ jobs:
519526
env:
520527
APP_FAILING_PREFLIGHTS_VERSION: ${{ needs.git-sha.outputs.git_sha }}-failing-preflights
521528
APP_WARNING_PREFLIGHTS_VERSION: ${{ needs.git-sha.outputs.git_sha }}-warning-preflights
529+
- test: TestSingleNodeInstallation
530+
env:
531+
APP_INSTALL_VERSION: ${{ needs.git-sha.outputs.git_sha }}-1.30-install
532+
K0S_INSTALL_VERSION: ${{ fromJson(needs.read-matrix.outputs.result).k0s_version['1.30-install'] }}
533+
- test: TestSingleNodeInstallationAlmaLinux8
534+
env:
535+
APP_INSTALL_VERSION: ${{ needs.git-sha.outputs.git_sha }}-1.29-install
536+
K0S_INSTALL_VERSION: ${{ fromJson(needs.read-matrix.outputs.result).k0s_version['1.29-install'] }}
537+
APP_UPGRADE_VERSION: ${{ needs.git-sha.outputs.git_sha }}-1.30-upgrade
538+
K0S_UPGRADE_VERSION: ${{ fromJson(needs.read-matrix.outputs.result).k0s_version['1.30-upgrade'] }}
539+
- test: TestSingleNodeInstallationDebian11
540+
env:
541+
APP_INSTALL_VERSION: ${{ needs.git-sha.outputs.git_sha }}-1.29-install
542+
K0S_INSTALL_VERSION: ${{ fromJson(needs.read-matrix.outputs.result).k0s_version['1.29-install'] }}
522543
- test: TestSingleNodeUpgradePreviousStable
523544
env:
524545
APP_INSTALL_VERSION: ${{ needs.git-sha.outputs.git_sha }}-previous-stable
525546
K0S_INSTALL_VERSION: ${{ needs.find-previous-stable.outputs.k0s_version }}
526547
- test: TestUpgradeFromReplicatedApp
527548
env:
528-
APP_INSTALL_VERSION: ${{ needs.git-sha.outputs.git_sha }}-1.29-install
529-
K0S_INSTALL_VERSION: ${{ fromJson(needs.read-matrix.outputs.result).k0s_version['1.29-install'] }}
549+
APP_INSTALL_VERSION: ${{ needs.git-sha.outputs.git_sha }}-1.30-install
550+
K0S_INSTALL_VERSION: ${{ fromJson(needs.read-matrix.outputs.result).k0s_version['1.30-install'] }}
530551
- test: TestSingleNodeLegacyDisasterRecovery
531552
env:
532553
APP_INSTALL_VERSION: ${{ needs.git-sha.outputs.git_sha }}-legacydr
@@ -594,7 +615,7 @@ jobs:
594615
- find-previous-stable
595616
- release-app
596617
env:
597-
# common environment variables
618+
# default environment variables
598619
APP_INSTALL_VERSION: ${{ needs.git-sha.outputs.git_sha }}-current-install
599620
APP_NOOP_VERSION: ${{ needs.git-sha.outputs.git_sha }}-noop
600621
APP_UPGRADE_VERSION: ${{ needs.git-sha.outputs.git_sha }}-current-upgrade
@@ -617,24 +638,26 @@ jobs:
617638
K0S_INSTALL_VERSION: ${{ fromJson(needs.read-matrix.outputs.result).k0s_version['1.29-install'] }}
618639
- test: TestSingleNodeAirgapUpgradeConfigValues
619640
env:
620-
APP_INSTALL_VERSION: ${{ needs.git-sha.outputs.git_sha }}-1.29-install
621-
K0S_INSTALL_VERSION: ${{ fromJson(needs.read-matrix.outputs.result).k0s_version['1.29-install'] }}
641+
APP_INSTALL_VERSION: ${{ needs.git-sha.outputs.git_sha }}-1.30-install
642+
K0S_INSTALL_VERSION: ${{ fromJson(needs.read-matrix.outputs.result).k0s_version['1.30-install'] }}
622643
- test: TestSingleNodeAirgapUpgradeCustomCIDR
623644
env:
624645
APP_INSTALL_VERSION: ${{ needs.git-sha.outputs.git_sha }}-1.29-install
625646
K0S_INSTALL_VERSION: ${{ fromJson(needs.read-matrix.outputs.result).k0s_version['1.29-install'] }}
647+
APP_UPGRADE_VERSION: ${{ needs.git-sha.outputs.git_sha }}-1.30-upgrade
648+
K0S_UPGRADE_VERSION: ${{ fromJson(needs.read-matrix.outputs.result).k0s_version['1.30-upgrade'] }}
626649
- test: TestMultiNodeAirgapUpgrade
627650
env:
628-
APP_INSTALL_VERSION: ${{ needs.git-sha.outputs.git_sha }}-1.29-install
629-
K0S_INSTALL_VERSION: ${{ fromJson(needs.read-matrix.outputs.result).k0s_version['1.29-install'] }}
651+
APP_INSTALL_VERSION: ${{ needs.git-sha.outputs.git_sha }}-1.30-install
652+
K0S_INSTALL_VERSION: ${{ fromJson(needs.read-matrix.outputs.result).k0s_version['1.30-install'] }}
630653
- test: TestMultiNodeAirgapUpgradePreviousStable
631654
env:
632655
APP_INSTALL_VERSION: ${{ needs.git-sha.outputs.git_sha }}-previous-stable
633656
K0S_INSTALL_VERSION: ${{ needs.find-previous-stable.outputs.k0s_version }}
634657
- test: TestSingleNodeAirgapDisasterRecovery
635658
env:
636-
APP_INSTALL_VERSION: ${{ needs.git-sha.outputs.git_sha }}-1.29-install
637-
K0S_INSTALL_VERSION: ${{ fromJson(needs.read-matrix.outputs.result).k0s_version['1.29-install'] }}
659+
APP_INSTALL_VERSION: ${{ needs.git-sha.outputs.git_sha }}-1.30-install
660+
K0S_INSTALL_VERSION: ${{ fromJson(needs.read-matrix.outputs.result).k0s_version['1.30-install'] }}
638661
- test: TestVersion
639662
is-lxd: true
640663
- test: TestCommandsRequireSudo
@@ -713,7 +736,7 @@ jobs:
713736
- find-previous-stable
714737
- release-app
715738
env:
716-
# common environment variables
739+
# default environment variables
717740
APP_INSTALL_VERSION: ${{ needs.git-sha.outputs.git_sha }}-current-install
718741
APP_NOOP_VERSION: ${{ needs.git-sha.outputs.git_sha }}-noop
719742
APP_UPGRADE_VERSION: ${{ needs.git-sha.outputs.git_sha }}-current-upgrade
@@ -728,8 +751,8 @@ jobs:
728751
include:
729752
- test: TestFiveNodesAirgapUpgrade
730753
env:
731-
APP_INSTALL_VERSION: ${{ needs.git-sha.outputs.git_sha }}-1.29-install
732-
K0S_INSTALL_VERSION: ${{ fromJson(needs.read-matrix.outputs.result).k0s_version['1.29-install'] }}
754+
APP_INSTALL_VERSION: ${{ needs.git-sha.outputs.git_sha }}-1.30-install
755+
K0S_INSTALL_VERSION: ${{ fromJson(needs.read-matrix.outputs.result).k0s_version['1.30-install'] }}
733756
steps:
734757
- name: Checkout
735758
uses: actions/checkout@v4

0 commit comments

Comments
 (0)