From fdb9d7d897f6bd7ec61eda90d1257b127d6e38c3 Mon Sep 17 00:00:00 2001 From: jayfranco999 Date: Tue, 26 Nov 2024 15:57:30 +0530 Subject: [PATCH 1/2] chore(updatecli) tracks ubuntu 22_04 ARM64 AZ images Signed-off-by: jayfranco999 --- .../updatecli.d/az-ubuntu-22-04-arm64-images | 50 +++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 updatecli/updatecli.d/az-ubuntu-22-04-arm64-images diff --git a/updatecli/updatecli.d/az-ubuntu-22-04-arm64-images b/updatecli/updatecli.d/az-ubuntu-22-04-arm64-images new file mode 100644 index 000000000..05153127e --- /dev/null +++ b/updatecli/updatecli.d/az-ubuntu-22-04-arm64-images @@ -0,0 +1,50 @@ +--- +name: Bump Azure Ubuntu `22.04` arm64 image version + +scms: + default: + kind: github + spec: + user: "{{ .github.user }}" + email: "{{ .github.email }}" + owner: "{{ .github.owner }}" + repository: "{{ .github.repository }}" + token: "{{ requiredEnv .github.token }}" + username: "{{ .github.username }}" + branch: "{{ .github.branch }}" + +sources: + lastReleaseVersion: + kind: shell + name: Get the latest `ubuntu 22.04` arm64 image version from Azure + spec: + command: az login --service-principal -u $AZURE_CLIENT_ID -p $AZURE_CLIENT_SECRET --tenant $AZURE_TENANT_ID > /dev/null && az vm image list --location eastus --publisher Canonical --offer 0001-com-ubuntu-server-jammy --sku 22_04-lts-arm64 --all --query "[?offer=='0001-com-ubuntu-server-jammy'].version" -o tsv | sort -u | tail -n 1 + environments: + - name: PATH + - name: AZURE_CLIENT_ID + - name: AZURE_CLIENT_SECRET + - name: AZURE_TENANT_ID + +targets: + updateVersion: + name: Update azure `ubuntu 22.04` arm64 image version in locals + sourceid: lastReleaseVersion + kind: yaml + scmid: default + spec: + file: ./images-versions.yaml + key: $.azure.ubuntu.'22.04'.arm64 + transformers: + - addprefix: '"' + - addsuffix: '"' + +actions: + default: + kind: github/pullrequest + scmid: default + spec: + title: Bump azure `ubuntu 22.04` arm64 image version + description: "Update the latest Azure Ubuntu 22.04 arm64 image version in the images-versions.yaml file." + labels: + - enhancement + - ubuntu From 0eabc2d804fe47b5d7bc9d7dab31461f8a667836 Mon Sep 17 00:00:00 2001 From: jayfranco999 Date: Tue, 26 Nov 2024 16:20:05 +0530 Subject: [PATCH 2/2] fixup Signed-off-by: jayfranco999 --- ...ubuntu-22-04-arm64-images => az-ubuntu-22-04-arm64-images.yml} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename updatecli/updatecli.d/{az-ubuntu-22-04-arm64-images => az-ubuntu-22-04-arm64-images.yml} (100%) diff --git a/updatecli/updatecli.d/az-ubuntu-22-04-arm64-images b/updatecli/updatecli.d/az-ubuntu-22-04-arm64-images.yml similarity index 100% rename from updatecli/updatecli.d/az-ubuntu-22-04-arm64-images rename to updatecli/updatecli.d/az-ubuntu-22-04-arm64-images.yml