summaryrefslogtreecommitdiffstats
path: root/pkg
diff options
context:
space:
mode:
authorMatthew <matthew@matthew-cash.com>2024-01-24 03:44:48 +0100
committerGitHub <noreply@github.com>2024-01-24 03:44:48 +0100
commit6a8c42ac531694748f950fe4aea00c85b9096360 (patch)
tree2cc8a3de6340975db387a694be441bcd5cd39068 /pkg
parentbuild(deps): bump megalinter/megalinter from 7.7.0 to 7.8.0 (#2164) (diff)
downloadforgejo-act-6a8c42ac531694748f950fe4aea00c85b9096360.tar.xz
forgejo-act-6a8c42ac531694748f950fe4aea00c85b9096360.zip
Add containerd's normalized architectures to archMapper (#2168)
Diffstat (limited to 'pkg')
-rw-r--r--pkg/container/docker_run.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/pkg/container/docker_run.go b/pkg/container/docker_run.go
index dff2ac6..bf220e6 100644
--- a/pkg/container/docker_run.go
+++ b/pkg/container/docker_run.go
@@ -238,8 +238,10 @@ func RunnerArch(ctx context.Context) string {
archMapper := map[string]string{
"x86_64": "X64",
+ "amd64": "X64",
"386": "X86",
"aarch64": "ARM64",
+ "arm64": "ARM64",
}
if arch, ok := archMapper[info.Architecture]; ok {
return arch