Skip to content

Commit ee37ec8

Browse files
committed
chore: update container images to version 2.2.0 across all services
1 parent fca8fe7 commit ee37ec8

17 files changed

Lines changed: 74 additions & 38 deletions

.github/workflows/release-container-images.yaml

Lines changed: 39 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ jobs:
7979
needs: publish-container-image
8080
permissions:
8181
contents: write
82+
pull-requests: write
8283

8384
steps:
8485
- name: Checkout code
@@ -192,17 +193,52 @@ jobs:
192193
# kaito overlay uses full ghcr.io path
193194
update_full_image_ref "kustomize/overlays/kaito/ai-service.yaml" "ai-service" "$VERSION"
194195
196+
# =============================================================================
197+
# Update Helm chart appVersion
198+
# =============================================================================
199+
200+
echo "Updating Helm chart appVersion..."
201+
# Image tags in values.yaml default to Chart.AppVersion, so bump appVersion.
202+
# The chart's own 'version' field follows independent semver and is left untouched.
203+
CHART_FILE="charts/aks-store-demo/Chart.yaml"
204+
if [ -f "$CHART_FILE" ]; then
205+
sed -i "s|^appVersion:.*|appVersion: \"${VERSION}\"|" "$CHART_FILE"
206+
echo "Updated appVersion in ${CHART_FILE}"
207+
fi
208+
195209
echo "Manifest updates complete!"
196210
197-
- name: Commit and push changes
211+
- name: Commit, push branch, and open PR
212+
env:
213+
GH_TOKEN: ${{ github.token }}
198214
run: |
215+
set -euo pipefail
216+
217+
VERSION="${{ steps.set-version.outputs.VERSION }}"
218+
BRANCH="chore/update-image-tags-${VERSION}"
219+
HEAD_REF="${{ github.repository_owner }}:${BRANCH}"
220+
199221
git config --global user.name "github-actions[bot]"
200222
git config --global user.email "github-actions[bot]@users.noreply.github.com"
201223
224+
git checkout -b "$BRANCH"
202225
git add -A
226+
203227
if git diff --staged --quiet; then
204228
echo "No changes to commit"
229+
exit 0
230+
fi
231+
232+
git commit -m "chore: update container image tags to ${VERSION}"
233+
git push -u origin "$BRANCH" --force-with-lease
234+
235+
# Create PR only if one doesn't already exist for this head branch
236+
if gh pr list --state open --head "$BRANCH" --json number --jq 'length > 0' | grep -q true; then
237+
echo "PR already exists for branch $BRANCH"
205238
else
206-
git commit -m "chore: update container image tags to ${{ steps.set-version.outputs.VERSION }}"
207-
git push origin HEAD:main
239+
gh pr create \
240+
--base "${{ github.event.repository.default_branch }}" \
241+
--head "$HEAD_REF" \
242+
--title "chore: update container image tags to ${VERSION}" \
243+
--body "Automated manifest image tag update for release ${VERSION}."
208244
fi

ai-service.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ spec:
1616
"kubernetes.io/os": linux
1717
containers:
1818
- name: ai-service
19-
image: ghcr.io/azure-samples/aks-store-demo/ai-service:2.1.0
19+
image: ghcr.io/azure-samples/aks-store-demo/ai-service:2.2.0
2020
ports:
2121
- containerPort: 5001
2222
env:

aks-store-all-in-one.yaml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ spec:
179179
"kubernetes.io/os": linux
180180
containers:
181181
- name: order-service
182-
image: ghcr.io/azure-samples/aks-store-demo/order-service:2.1.0
182+
image: ghcr.io/azure-samples/aks-store-demo/order-service:2.2.0
183183
ports:
184184
- containerPort: 3000
185185
envFrom:
@@ -259,7 +259,7 @@ spec:
259259
"kubernetes.io/os": linux
260260
containers:
261261
- name: makeline-service
262-
image: ghcr.io/azure-samples/aks-store-demo/makeline-service:2.1.0
262+
image: ghcr.io/azure-samples/aks-store-demo/makeline-service:2.2.0
263263
ports:
264264
- containerPort: 3001
265265
env:
@@ -340,7 +340,7 @@ spec:
340340
"kubernetes.io/os": linux
341341
containers:
342342
- name: product-service
343-
image: ghcr.io/azure-samples/aks-store-demo/product-service:2.1.0
343+
image: ghcr.io/azure-samples/aks-store-demo/product-service:2.2.0
344344
ports:
345345
- containerPort: 3002
346346
env:
@@ -399,7 +399,7 @@ spec:
399399
"kubernetes.io/os": linux
400400
containers:
401401
- name: store-front
402-
image: ghcr.io/azure-samples/aks-store-demo/store-front:2.1.0
402+
image: ghcr.io/azure-samples/aks-store-demo/store-front:2.2.0
403403
ports:
404404
- containerPort: 8080
405405
name: store-front
@@ -462,7 +462,7 @@ spec:
462462
"kubernetes.io/os": linux
463463
containers:
464464
- name: store-admin
465-
image: ghcr.io/azure-samples/aks-store-demo/store-admin:2.1.0
465+
image: ghcr.io/azure-samples/aks-store-demo/store-admin:2.2.0
466466
ports:
467467
- containerPort: 8081
468468
name: store-admin
@@ -525,7 +525,7 @@ spec:
525525
"kubernetes.io/os": linux
526526
containers:
527527
- name: virtual-customer
528-
image: ghcr.io/azure-samples/aks-store-demo/virtual-customer:2.1.0
528+
image: ghcr.io/azure-samples/aks-store-demo/virtual-customer:2.2.0
529529
env:
530530
- name: ORDER_SERVICE_URL
531531
value: http://order-service:3000/
@@ -573,7 +573,7 @@ spec:
573573
"kubernetes.io/os": linux
574574
containers:
575575
- name: virtual-worker
576-
image: ghcr.io/azure-samples/aks-store-demo/virtual-worker:2.1.0
576+
image: ghcr.io/azure-samples/aks-store-demo/virtual-worker:2.2.0
577577
env:
578578
- name: MAKELINE_SERVICE_URL
579579
value: http://makeline-service:3001

aks-store-ingress-quickstart.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ spec:
112112
"kubernetes.io/os": linux
113113
containers:
114114
- name: order-service
115-
image: ghcr.io/azure-samples/aks-store-demo/order-service:2.1.0
115+
image: ghcr.io/azure-samples/aks-store-demo/order-service:2.2.0
116116
ports:
117117
- containerPort: 3000
118118
envFrom:
@@ -192,7 +192,7 @@ spec:
192192
"kubernetes.io/os": linux
193193
containers:
194194
- name: product-service
195-
image: ghcr.io/azure-samples/aks-store-demo/product-service:2.1.0
195+
image: ghcr.io/azure-samples/aks-store-demo/product-service:2.2.0
196196
ports:
197197
- containerPort: 3002
198198
env:
@@ -251,7 +251,7 @@ spec:
251251
"kubernetes.io/os": linux
252252
containers:
253253
- name: store-front
254-
image: ghcr.io/azure-samples/aks-store-demo/store-front:2.1.0
254+
image: ghcr.io/azure-samples/aks-store-demo/store-front:2.2.0
255255
ports:
256256
- containerPort: 8080
257257
name: store-front

aks-store-quickstart.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ spec:
8888
"kubernetes.io/os": linux
8989
containers:
9090
- name: order-service
91-
image: ghcr.io/azure-samples/aks-store-demo/order-service:2.1.0
91+
image: ghcr.io/azure-samples/aks-store-demo/order-service:2.2.0
9292
ports:
9393
- containerPort: 3000
9494
env:
@@ -176,7 +176,7 @@ spec:
176176
"kubernetes.io/os": linux
177177
containers:
178178
- name: product-service
179-
image: ghcr.io/azure-samples/aks-store-demo/product-service:2.1.0
179+
image: ghcr.io/azure-samples/aks-store-demo/product-service:2.2.0
180180
ports:
181181
- containerPort: 3002
182182
env:
@@ -235,7 +235,7 @@ spec:
235235
"kubernetes.io/os": linux
236236
containers:
237237
- name: store-front
238-
image: ghcr.io/azure-samples/aks-store-demo/store-front:2.1.0
238+
image: ghcr.io/azure-samples/aks-store-demo/store-front:2.2.0
239239
ports:
240240
- containerPort: 8080
241241
name: store-front

charts/aks-store-demo/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,4 @@ version: 1.6.0
2121
# incremented each time you make changes to the application. Versions are not expected to
2222
# follow Semantic Versioning. They should reflect the version the application is using.
2323
# It is recommended to use it with quotes.
24-
appVersion: "2.1.0"
24+
appVersion: "2.2.0"

kustomize/base/makeline-service.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ spec:
1616
"kubernetes.io/os": linux
1717
containers:
1818
- name: makeline-service
19-
image: ghcr.io/azure-samples/aks-store-demo/makeline-service:2.1.0
19+
image: ghcr.io/azure-samples/aks-store-demo/makeline-service:2.2.0
2020
ports:
2121
- containerPort: 3001
2222
env:

kustomize/base/order-service.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ spec:
1616
"kubernetes.io/os": linux
1717
containers:
1818
- name: order-service
19-
image: ghcr.io/azure-samples/aks-store-demo/order-service:2.1.0
19+
image: ghcr.io/azure-samples/aks-store-demo/order-service:2.2.0
2020
ports:
2121
- containerPort: 3000
2222
env:

kustomize/base/product-service.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ spec:
1616
"kubernetes.io/os": linux
1717
containers:
1818
- name: product-service
19-
image: ghcr.io/azure-samples/aks-store-demo/product-service:2.1.0
19+
image: ghcr.io/azure-samples/aks-store-demo/product-service:2.2.0
2020
ports:
2121
- containerPort: 3002
2222
env:

kustomize/base/store-admin.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ spec:
1616
"kubernetes.io/os": linux
1717
containers:
1818
- name: store-admin
19-
image: ghcr.io/azure-samples/aks-store-demo/store-admin:2.1.0
19+
image: ghcr.io/azure-samples/aks-store-demo/store-admin:2.2.0
2020
ports:
2121
- containerPort: 8081
2222
name: store-admin

0 commit comments

Comments
 (0)