From 405d8c4d5f3cb5fd8a69f25fad91a30821ff3309 Mon Sep 17 00:00:00 2001 From: Ivan Pavlovic Date: Thu, 21 Jul 2022 17:54:42 +0200 Subject: [PATCH] Rename machine image names --- .github/workflows/update-versions.yaml | 2 +- aws/runner-machine-image.pkr.hcl | 2 +- gcp/runner-machine-image.pkr.hcl | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/update-versions.yaml b/.github/workflows/update-versions.yaml index 9589970..2993ccc 100644 --- a/.github/workflows/update-versions.yaml +++ b/.github/workflows/update-versions.yaml @@ -2,7 +2,7 @@ name: Check For Latest Versions on: schedule: - - cron: '*/15 * * * *' + - cron: '0 0 * * *' env: NEW_BRANCH: bump-versions-${{ github.run_id }} diff --git a/aws/runner-machine-image.pkr.hcl b/aws/runner-machine-image.pkr.hcl index 0735115..8f45b64 100644 --- a/aws/runner-machine-image.pkr.hcl +++ b/aws/runner-machine-image.pkr.hcl @@ -8,7 +8,7 @@ packer { } source "amazon-ebs" "runner_machine_image" { - ami_name = format("%s-ghr%s", regex_replace(var.source_image, "(ubuntu/images/((\\*)|(hvm-ssd/)))|(-\\*)|(\\.)", "" ), replace(var.runner_version, ".", "")) + ami_name = format("%s-ghr%s", regex_replace(var.source_image, "(ubuntu/images/((\\*)|(hvm-ssd/)))|(-\\*)|(\\.)", "" ), replace(trim(var.runner_version, "v"), ".", "")) instance_type = var.instance_type region = var.region source_ami_filter { diff --git a/gcp/runner-machine-image.pkr.hcl b/gcp/runner-machine-image.pkr.hcl index 8358223..2275974 100644 --- a/gcp/runner-machine-image.pkr.hcl +++ b/gcp/runner-machine-image.pkr.hcl @@ -9,7 +9,7 @@ packer { source "googlecompute" "runner_machine_image" { project_id = var.project - image_name = format("%s-ghr%s-nv%s", var.source_image, replace(var.runner_version, ".", ""), replace(var.nvidia_major_version, ".", "")) + image_name = format("%s-ghr%s-nv%s", var.source_image, replace(trim(var.runner_version, "v"), ".", ""), replace(var.nvidia_major_version, ".", "")) image_family = var.image_family ssh_username = "root" source_image = var.source_image