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 2022/07/12 12:42:04 UTC
[airflow-ci-infra] branch main updated: Added hostedtools directory (added by GitHub
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 506f63e Added hostedtools directory (added by GitHub
506f63e is described below
commit 506f63e9df7986dfae81f72539ce4bc2c237ee66
Author: Jarek Potiuk <ja...@potiuk.com>
AuthorDate: Tue Jul 12 14:40:57 2022 +0200
Added hostedtools directory (added by GitHub
---
.../packer/files/create-hostedtools-cache.sh | 21 +++++++++++++++++++++
github-runner-ami/packer/ubuntu2004.pkr.hcl | 3 ++-
2 files changed, 23 insertions(+), 1 deletion(-)
diff --git a/github-runner-ami/packer/files/create-hostedtools-cache.sh b/github-runner-ami/packer/files/create-hostedtools-cache.sh
new file mode 100644
index 0000000..89a9f74
--- /dev/null
+++ b/github-runner-ami/packer/files/create-hostedtools-cache.sh
@@ -0,0 +1,21 @@
+#!/bin/bash
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied. See the License for the
+# specific language governing permissions and limitations
+# under the License.
+
+set -eu -o pipefail
+echo "Creating hosted tools cache:"
+install --owner runner --directory /opt/hostedtoolcache
diff --git a/github-runner-ami/packer/ubuntu2004.pkr.hcl b/github-runner-ami/packer/ubuntu2004.pkr.hcl
index 0983ef2..bfe6564 100644
--- a/github-runner-ami/packer/ubuntu2004.pkr.hcl
+++ b/github-runner-ami/packer/ubuntu2004.pkr.hcl
@@ -38,7 +38,7 @@ source "amazon-ebs" "runner_builder" {
#access_key = ""
#secret_key = ""
region = var.aws_regions[0]
- ami_name = "${var.ami_name}-${var.runner_version}-v6"
+ ami_name = "${var.ami_name}-${var.runner_version}-v7"
ami_regions = var.aws_regions
tag {
key = "Name"
@@ -142,6 +142,7 @@ build {
"./files/docker-compose.sh",
"./files/git.sh",
"./files/runner_bootstrap.sh",
+ "./files/create-hostedtools-cache.sh",
"./files/docker-buildx.sh",
"./files/regctl.sh",
"./files/cleanup.sh",