Skip to content
Permalink
Browse files
fix directory for the buildx plugin
  • Loading branch information
potiuk committed Jan 21, 2022
1 parent 29df71c commit 9b386c0c28c573a0e291f60915ab69891884d627
Showing 2 changed files with 4 additions and 3 deletions.
@@ -25,6 +25,7 @@ fi
# Hard-code docker buildx version
buildx_version="v0.7.1"
buildx_binary="buildx-${buildx_version}.$(uname -s)-${architecture}"
plugins_dir="${HOME}/.docker/cli-plugins"
plugins_dir="/home/runner/.docker/cli-plugins"
mkdir -pv "${plugins_dir}"
curl -L "https://github.com/docker/buildx/releases/download/${buildx_version}/${buildx_binary}" -o "${plugins_dir}/${buildx_binary}"
chown -R runner:runner "${plugins_dir}"
@@ -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}"
ami_name = "${var.ami_name}-${var.runner_version}-v2"
ami_regions = var.aws_regions
tag {
key = "Name"
@@ -140,9 +140,9 @@ build {
"./files/install-nodejs.sh",
"./files/install-github-cli.sh",
"./files/docker-compose.sh",
"./files/docker-buildx.sh",
"./files/git.sh",
"./files/runner_bootstrap.sh",
"./files/docker-buildx.sh",
"./files/cleanup.sh",
]
execute_command = "chmod +x '{{ .Path }}'; sudo sh -c '{{ .Vars }} {{ .Path }}'"

0 comments on commit 9b386c0

Please sign in to comment.