@@ -63,15 +63,17 @@ jobs:
6363
6464 - name : Build and push local-artifact-mirror image
6565 run : |
66- export SHORT_SHA=dev-$(git rev-parse --short=7 HEAD)
66+ SHA=${{ github.event.pull_request.head.sha }}
67+ export SHORT_SHA=dev-${SHA::7}
6768 export LOCAL_ARTIFACT_MIRROR_IMAGE=registry.staging.replicated.com/library/embedded-cluster-local-artifact-mirror
6869 make build-and-push-local-artifact-mirror-image VERSION="${SHORT_SHA}"
6970 make build-and-push-local-artifact-mirror-image VERSION="${SHORT_SHA}-previous-k0s"
7071 make build-and-push-local-artifact-mirror-image VERSION="${SHORT_SHA}-upgrade"
7172
7273 - name : Build Linux AMD64 and Output Metadata
7374 run : |
74- export SHORT_SHA=dev-$(git rev-parse --short=7 HEAD)
75+ SHA=${{ github.event.pull_request.head.sha }}
76+ export SHORT_SHA=dev-${SHA::7}
7577 export LOCAL_ARTIFACT_MIRROR_IMAGE=registry.staging.replicated.com/library/embedded-cluster-local-artifact-mirror
7678 make -B embedded-cluster-linux-amd64 K0S_VERSION=$(make print-PREVIOUS_K0S_VERSION) K0S_BINARY_SOURCE_OVERRIDE=$(make print-PREVIOUS_K0S_BINARY_SOURCE_OVERRIDE) VERSION="${SHORT_SHA}-previous-k0s"
7779 tar -C output/bin -czvf embedded-cluster-linux-amd64-previous-k0s.tgz embedded-cluster
98100 REPLICATED_API_TOKEN : ${{ secrets.STAGING_REPLICATED_API_TOKEN }}
99101 REPLICATED_API_ORIGIN : " https://api.staging.replicated.com/vendor"
100102 run : |
101- export SHORT_SHA=dev-$(git rev-parse --short=7 HEAD)
103+ SHA=${{ github.event.pull_request.head.sha }}
104+ export SHORT_SHA=dev-${SHA::7}
102105 echo "${SHORT_SHA}"
103106 sed -i "s/__version_string__/${SHORT_SHA}/g" e2e/kots-release-install/cluster-config.yaml
104107 sed -i "s/__version_string__/${SHORT_SHA}-upgrade/g" e2e/kots-release-upgrade/cluster-config.yaml
@@ -107,10 +110,12 @@ jobs:
107110 replicated release promote 807 2cHXb1RCttzpR0xvnNWyaZCgDBP --version "appver-${SHORT_SHA}-pre-minio-removal"
108111
109112 replicated release create --yaml-dir e2e/kots-release-install --promote CI --version "appver-${SHORT_SHA}"
113+ replicated release create --yaml-dir e2e/kots-release-install --promote CI --version "appver-${SHORT_SHA}-noop"
110114 replicated release create --yaml-dir e2e/kots-release-upgrade --promote CI --version "appver-${SHORT_SHA}-upgrade"
111115 - name : Build CI binary
112116 run : |
113- export SHORT_SHA=dev-$(git rev-parse --short=7 HEAD)
117+ SHA=${{ github.event.pull_request.head.sha }}
118+ export SHORT_SHA=dev-${SHA::7}
114119 export LOCAL_ARTIFACT_MIRROR_IMAGE=registry.staging.replicated.com/library/embedded-cluster-local-artifact-mirror
115120 echo "# channel release object" > e2e/kots-release-install/release.yaml
116121 echo 'channelID: "2cHXb1RCttzpR0xvnNWyaZCgDBP"' >> e2e/kots-release-install/release.yaml
@@ -129,7 +134,8 @@ jobs:
129134 AWS_SECRET_ACCESS_KEY : ${{ secrets.STAGING_EMBEDDED_CLUSTER_UPLOAD_IAM_SECRET }}
130135 AWS_REGION : " us-east-1"
131136 run : |
132- export SHORT_SHA=dev-$(git rev-parse --short=7 HEAD)
137+ SHA=${{ github.event.pull_request.head.sha }}
138+ export SHORT_SHA=dev-${SHA::7}
133139 export EC_VERSION="v${SHORT_SHA}"
134140 ./scripts/cache-files.sh
135141 ./scripts/create-upgrade-release.sh
@@ -141,7 +147,8 @@ jobs:
141147 REPLICATED_API_TOKEN : ${{ secrets.STAGING_REPLICATED_API_TOKEN }}
142148 REPLICATED_API_ORIGIN : " https://api.staging.replicated.com/vendor"
143149 run : |
144- export SHORT_SHA=dev-$(git rev-parse --short=7 HEAD)
150+ SHA=${{ github.event.pull_request.head.sha }}
151+ export SHORT_SHA=dev-${SHA::7}
145152 echo "${SHORT_SHA}"
146153 rm e2e/kots-release-install/release.yaml
147154 replicated release create --yaml-dir e2e/kots-release-install --promote CI-airgap --version "appver-${SHORT_SHA}"
@@ -154,7 +161,8 @@ jobs:
154161
155162 - name : Create download link message text
156163 run : |
157- export SHORT_SHA=dev-$(git rev-parse --short=7 HEAD)
164+ SHA=${{ github.event.pull_request.head.sha }}
165+ export SHORT_SHA=dev-${SHA::7}
158166
159167 echo "This PR has been released (on staging) and is available for download with a embedded-cluster-smoke-test-staging-app [license ID](https://vendor.staging.replicated.com/apps/embedded-cluster-smoke-test-staging-app/customers?sort=name-asc)." > download-link.txt
160168 echo "" >> download-link.txt
@@ -227,6 +235,7 @@ jobs:
227235 - TestMultiNodeAirgapHADisasterRecovery
228236 - TestCustomCIDR
229237 - TestProxiedCustomCIDR
238+ - TestSingleNodeInstallationNoopUpgrade
230239 include :
231240 - test : TestMultiNodeAirgapUpgrade
232241 runner : embedded-cluster
0 commit comments