@@ -213,75 +213,6 @@ jobs:
213
213
echo "K0S_VERSION=\"$K0S_VERSION\""
214
214
echo "k0s_version=$K0S_VERSION" >> "$GITHUB_OUTPUT"
215
215
216
- build-legacydr :
217
- name : Build legacy DR
218
- runs-on : embedded-cluster-2
219
- needs :
220
- - git-sha
221
- outputs :
222
- k0s_version : ${{ steps.export.outputs.k0s_version }}
223
- steps :
224
- - name : Checkout
225
- uses : actions/checkout@v4
226
- with :
227
- fetch-depth : 0
228
-
229
- - name : Cache embedded bins
230
- uses : actions/cache@v4
231
- with :
232
- path : |
233
- output/bins
234
- key : bins-cache
235
-
236
- - name : Setup go
237
- uses : actions/setup-go@v5
238
- with :
239
- go-version-file : go.mod
240
- cache-dependency-path : " **/*.sum"
241
-
242
- - name : Install dagger
243
- run : |
244
- curl -fsSL https://dl.dagger.io/dagger/install.sh | sh
245
- sudo mv ./bin/dagger /usr/local/bin/dagger
246
-
247
- - name : Build
248
- env :
249
- APP_CHANNEL_ID : 2cHXb1RCttzpR0xvnNWyaZCgDBP
250
- APP_CHANNEL_SLUG : ci
251
- RELEASE_YAML_DIR : e2e/kots-release-install-legacydr
252
- S3_BUCKET : " tf-staging-embedded-cluster-bin"
253
- USES_DEV_BUCKET : " 0"
254
- AWS_ACCESS_KEY_ID : ${{ secrets.STAGING_EMBEDDED_CLUSTER_UPLOAD_IAM_KEY_ID }}
255
- AWS_SECRET_ACCESS_KEY : ${{ secrets.STAGING_EMBEDDED_CLUSTER_UPLOAD_IAM_SECRET }}
256
- AWS_REGION : " us-east-1"
257
- USE_CHAINGUARD : " 1"
258
- UPLOAD_BINARIES : " 1"
259
- SKIP_RELEASE : " 1"
260
- GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
261
- run : |
262
- export K0S_VERSION=$(make print-K0S_VERSION)
263
- export EC_VERSION=$(git describe --tags --abbrev=4 --match='[0-9]*.[0-9]*.[0-9]*')-legacydr
264
- export APP_VERSION=appver-dev-${{ needs.git-sha.outputs.git_sha }}-legacydr
265
- # avoid rate limiting
266
- export FIO_VERSION=$(gh release list --repo axboe/fio --json tagName,isLatest | jq -r '.[] | select(.isLatest==true)|.tagName' | cut -d- -f2)
267
-
268
- ./scripts/build-and-release.sh
269
- cp output/bin/embedded-cluster output/bin/embedded-cluster-legacydr
270
-
271
- - name : Upload release
272
- uses : actions/upload-artifact@v4
273
- with :
274
- name : legacydr-release
275
- path : |
276
- output/bin/embedded-cluster-legacydr
277
-
278
- - name : Export k0s version
279
- id : export
280
- run : |
281
- K0S_VERSION="$(make print-K0S_VERSION)"
282
- echo "K0S_VERSION=\"$K0S_VERSION\""
283
- echo "k0s_version=$K0S_VERSION" >> "$GITHUB_OUTPUT"
284
-
285
216
build-previous-k0s :
286
217
name : Build previous k0s
287
218
runs-on : embedded-cluster-2
@@ -518,7 +449,6 @@ jobs:
518
449
needs :
519
450
- git-sha
520
451
- build-current
521
- - build-legacydr
522
452
- build-previous-k0s
523
453
- build-upgrade
524
454
- find-previous-stable
@@ -591,7 +521,7 @@ jobs:
591
521
./scripts/ci-release-app.sh
592
522
593
523
# promote a release with improved dr support
594
- export EC_VERSION="$(git describe --tags --abbrev=4 --match='[0-9]*.[0-9]*.[0-9]*')-legacydr "
524
+ export EC_VERSION="$(git describe --tags --abbrev=4 --match='[0-9]*.[0-9]*.[0-9]*')"
595
525
export APP_VERSION="appver-${SHORT_SHA}-legacydr"
596
526
export RELEASE_YAML_DIR=e2e/kots-release-install-legacydr
597
527
./scripts/ci-release-app.sh
@@ -636,12 +566,6 @@ jobs:
636
566
export RELEASE_YAML_DIR=e2e/kots-release-install
637
567
./scripts/ci-release-app.sh
638
568
639
- # promote a release with improved dr support
640
- export EC_VERSION="$(git describe --tags --abbrev=4 --match='[0-9]*.[0-9]*.[0-9]*')-legacydr"
641
- export APP_VERSION="appver-${SHORT_SHA}-legacydr"
642
- export RELEASE_YAML_DIR=e2e/kots-release-install-legacydr
643
- ./scripts/ci-release-app.sh
644
-
645
569
# then a noop upgrade
646
570
export EC_VERSION="$(git describe --tags --abbrev=4 --match='[0-9]*.[0-9]*.[0-9]*')"
647
571
export APP_VERSION="appver-${SHORT_SHA}-noop"
@@ -687,7 +611,6 @@ jobs:
687
611
needs :
688
612
- git-sha
689
613
- build-current
690
- - build-legacydr
691
614
- build-previous-k0s
692
615
- build-upgrade
693
616
- find-previous-stable
@@ -735,11 +658,6 @@ jobs:
735
658
with :
736
659
name : current-release
737
660
path : output/bin
738
- - name : Download new DR binary
739
- uses : actions/download-artifact@v4
740
- with :
741
- name : legacydr-release
742
- path : output/bin
743
661
- name : Setup go
744
662
uses : actions/setup-go@v5
745
663
with :
@@ -786,7 +704,6 @@ jobs:
786
704
runs-on : ${{ matrix.runner || 'ubuntu-22.04' }}
787
705
needs :
788
706
- build-current
789
- - build-legacydr
790
707
- build-previous-k0s
791
708
- build-upgrade
792
709
- find-previous-stable
@@ -854,7 +771,6 @@ jobs:
854
771
runs-on : ${{ matrix.runner || 'ubuntu-22.04' }}
855
772
needs :
856
773
- build-current
857
- - build-legacydr
858
774
- build-previous-k0s
859
775
- build-upgrade
860
776
- find-previous-stable
0 commit comments