-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(updatecli):Track
ubuntu 22_04 AMD64
AZ images (#1507)
* chore(updatecli):Track images Signed-off-by: jayfranco999 <[email protected]> * fixup Signed-off-by: jayfranco999 <[email protected]> * fixup Signed-off-by: jayfranco999 <[email protected]> * fixup Signed-off-by: jayfranco999 <[email protected]> * fixup Signed-off-by: jayfranco999 <[email protected]> * fixup Signed-off-by: jayfranco999 <[email protected]> * Update updatecli/updatecli.d/az-ubuntu-22-04-amd64-images.yml * Update updatecli/updatecli.d/az-ubuntu-22-04-amd64-images.yml --------- Signed-off-by: jayfranco999 <[email protected]> Co-authored-by: Damien Duportal <[email protected]>
- Loading branch information
1 parent
247307e
commit 272ca80
Showing
2 changed files
with
51 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
--- | ||
name: Bump azure `ubuntu 22.04` amd64 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` amd64 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-gen2 --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` amd64 image version in locals | ||
sourceid: lastReleaseVersion | ||
kind: yaml | ||
scmid: default | ||
spec: | ||
file: ./images-versions.yaml | ||
key: $.azure.ubuntu.'22.04'.amd64 | ||
transformers: | ||
- addprefix: '"' | ||
- addsuffix: '"' | ||
|
||
actions: | ||
default: | ||
kind: github/pullrequest | ||
scmid: default | ||
spec: | ||
title: Bump Azure Ubuntu `22.04` amd64 image version | ||
description: "Update the latest Azure Ubuntu 22.04 amd64 image version in the images-versions.yaml file." | ||
labels: | ||
- enhancement | ||
- ubuntu |