Use Ubuntu 22.04 for SDK AMI

Signed-off-by: Johann Hoffmann <johann.hoffmann@mailbox.org>
This commit is contained in:
Johann Hoffmann
2022-12-09 16:52:47 +01:00
parent ed2b9802fc
commit 1543893973

View File

@@ -68,7 +68,7 @@ runs:
run: |
echo "gateway_url=ow-docker-compose-${{ github.run_id }}.wlan.local" >> $GITHUB_OUTPUT
echo "sec_url=ow-docker-compose-${{ github.run_id }}.wlan.local" >> $GITHUB_OUTPUT
AMI=$(aws ec2 describe-images --filters '[{"Name":"description","Values":["Canonical, Ubuntu, 20.04 LTS, amd64*"]},{"Name":"owner-id","Values":["099720109477"]}]' --query 'sort_by(Images, &CreationDate)[-1].ImageId' --output text)
AMI=$(aws ec2 describe-images --filters '[{"Name":"description","Values":["Canonical, Ubuntu, 22.04 LTS, amd64*"]},{"Name":"owner-id","Values":["099720109477"]}]' --query 'sort_by(Images, &CreationDate)[-1].ImageId' --output text)
INSTANCE_NAME=ow-docker-compose-${{ github.run_id }}
echo "ami=${AMI}" >> $GITHUB_OUTPUT
echo "instance_name=${INSTANCE_NAME}" >> $GITHUB_OUTPUT