You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by po...@apache.org on 2023/10/22 15:02:20 UTC

[airflow-ci-infra] branch main updated: Add labels for Airflow VM runners

This is an automated email from the ASF dual-hosted git repository.

potiuk pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/airflow-ci-infra.git


The following commit(s) were added to refs/heads/main by this push:
     new 5d08664  Add labels for Airflow VM runners
     new e4e9c41  Merge pull request #60 from hussein-awala/feat/add_runners_labels
5d08664 is described below

commit 5d08664e0f0d2999e964fe4c3ae1da0510c3dcc3
Author: Hussein Awala <hu...@awala.fr>
AuthorDate: Sun Oct 22 16:33:11 2023 +0200

    Add labels for Airflow VM runners
---
 github-runner-ami/packer/ubuntu2004.pkr.hcl         | 4 ++++
 github-runner-ami/packer/vars/variables.pkrvars.hcl | 1 +
 2 files changed, 5 insertions(+)

diff --git a/github-runner-ami/packer/ubuntu2004.pkr.hcl b/github-runner-ami/packer/ubuntu2004.pkr.hcl
index 6b1f49c..ef0840f 100644
--- a/github-runner-ami/packer/ubuntu2004.pkr.hcl
+++ b/github-runner-ami/packer/ubuntu2004.pkr.hcl
@@ -30,6 +30,9 @@ variable "packer_role_arn" {
 variable "runner_version" {
   type = string
 }
+variable "runner_labels" {
+  type = string
+}
 variable "session_manager_instance_profile_name" {
   type = string
 }
@@ -157,6 +160,7 @@ build {
     execute_command = "chmod +x '{{ .Path }}'; sudo sh -c '{{ .Vars }} {{ .Path }}'"
     environment_vars = [
       "RUNNER_VERSION=${var.runner_version}",
+      "RUNNER_LABELS=${var.runner_labels}",
     ]
   }
 }
diff --git a/github-runner-ami/packer/vars/variables.pkrvars.hcl b/github-runner-ami/packer/vars/variables.pkrvars.hcl
index 68a033c..22e8bba 100644
--- a/github-runner-ami/packer/vars/variables.pkrvars.hcl
+++ b/github-runner-ami/packer/vars/variables.pkrvars.hcl
@@ -21,3 +21,4 @@ aws_regions = ["eu-central-1", "us-east-2"]
 packer_role_arn = "arn:aws:iam::827901512104:role/packer-role"
 runner_version = "2.309.0-airflow5"
 session_manager_instance_profile_name = "packer_ssm_instance_profile"
+runner_labels = "airflow-runner,vm-runner"
\ No newline at end of file