1111 k8s_version :
1212 description : " Specify the Kubernetes version"
1313 required : false
14- default : " 1.31.4"
15- options :
16- - " 1.31.4"
17- - " 1.31.5"
14+ default : " 1.31.13"
1815 make_public :
1916 description : " Include step to make AMIs public. Useful to disable when testing, so we don't pollute our public AMI list or bloat our quota limit."
2017 type : boolean
@@ -138,7 +135,7 @@ jobs:
138135 - name : Build Ubuntu AMI
139136 env :
140137 AWS_PROFILE : ditto-prod-primary
141- K8S_VERSION : ${{ github.event.inputs.k8s_version || '1.31.4' }}
138+ K8S_VERSION : ${{ github.event.inputs.k8s_version }}
142139 run : |
143140 AWS_REGION=${{ env.AWS_REGION }} \
144141 ./images/capi/update_k8s_version.sh && \
@@ -151,9 +148,13 @@ jobs:
151148 run : |
152149
153150 build-aws-flatcar-ami :
154- name : Build and Publish Flatcar AMI
151+ name : Build and Publish Flatcar AMI (${{ matrix.arch }})
155152 runs-on : ubuntu-latest
156153 if : ${{ github.event.inputs.build_target == 'all' || github.event.inputs.build_target == 'flatcar-only' || github.event.inputs.build_target == '' }}
154+ strategy :
155+ fail-fast : false
156+ matrix :
157+ arch : [amd64, arm64]
157158 env :
158159 CLOUD : " aws"
159160 FLATCAR_CHANNEL : " stable"
@@ -187,11 +188,15 @@ jobs:
187188 - name : Build Flatcar AMI
188189 env :
189190 AWS_PROFILE : ditto-prod-primary
190- K8S_VERSION : ${{ github.event.inputs.k8s_version || '1.31.4' }}
191+ K8S_VERSION : ${{ github.event.inputs.k8s_version }}
191192 TARGET_OS : flatcar
192193 run : |
193194 ./images/capi/update_k8s_version.sh && \
194- make build-ami-flatcar
195+ if [ "${{ matrix.arch }}" = "amd64" ]; then
196+ make build-ami-flatcar
197+ else
198+ make build-ami-flatcar-${{ matrix.arch }}
199+ fi
195200
196201 - name : Make Flatcar AMI Public
197202 if : ${{ github.event.inputs.make_public == 'true' }}
@@ -237,7 +242,7 @@ jobs:
237242
238243 - name : Build Ubuntu GCP Images
239244 env :
240- K8S_VERSION : ${{ github.event.inputs.k8s_version || '1.31.4' }}
245+ K8S_VERSION : ${{ github.event.inputs.k8s_version }}
241246 PKR_VAR_google_access_token : " ${{ steps.gcp-auth.outputs.access_token }}"
242247 run : |
243248 ./images/capi/update_k8s_version.sh && \
0 commit comments