Skip to content

Commit

Permalink
Rename machine image names
Browse files Browse the repository at this point in the history
  • Loading branch information
pavlovic-ivan committed Jul 21, 2022
1 parent 7514933 commit 405d8c4
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/update-versions.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Check For Latest Versions

on:
schedule:
- cron: '*/15 * * * *'
- cron: '0 0 * * *'

env:
NEW_BRANCH: bump-versions-${{ github.run_id }}
Expand Down
2 changes: 1 addition & 1 deletion aws/runner-machine-image.pkr.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion gcp/runner-machine-image.pkr.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 405d8c4

Please sign in to comment.