Compare commits

..
Author SHA1 Message Date
zramsay 4cbc84b388 update url 2024-09-13 09:58:51 -04:00
2 changed files with 8 additions and 14 deletions
+7 -13
View File
@@ -14,7 +14,6 @@
# along with this program. If not, see <http:#www.gnu.org/licenses/>. # along with this program. If not, see <http:#www.gnu.org/licenses/>.
import click import click
import os
from dataclasses import dataclass from dataclasses import dataclass
import json import json
import platform import platform
@@ -85,18 +84,13 @@ def _filter_for_platform(container: str,
tag_list: List[str]) -> List[str] : tag_list: List[str]) -> List[str] :
filtered_tags = [] filtered_tags = []
this_machine = platform.machine() this_machine = platform.machine()
if "DOCKER_DEFAULT_PLATFORM" in os.environ: # Translate between Python and docker platform names
this_machine = os.environ["DOCKER_DEFAULT_PLATFORM"].split("/")[-1] if this_machine == "x86_64":
if opts.o.debug: this_machine = "amd64"
print(f"DOCKER_DEFAULT_PLATFORM says the architecture is: {this_machine}") if this_machine == "aarch64":
else: this_machine = "arm64"
# Translate between Python and docker platform names if opts.o.debug:
if this_machine == "x86_64": print(f"Python says the architecture is: {this_machine}")
this_machine = "amd64"
if this_machine == "aarch64":
this_machine = "arm64"
if opts.o.debug:
print(f"Python says the architecture is: {this_machine}")
docker = DockerClient() docker = DockerClient()
for tag in tag_list: for tag in tag_list:
remote_tag = f"{registry_info.registry}/{container}:{tag}" remote_tag = f"{registry_info.registry}/{container}:{tag}"
@@ -3,7 +3,7 @@ name: act-runner
description: "Local act-runner" description: "Local act-runner"
repos: repos:
- git.vdb.to/cerc-io/hosting - git.vdb.to/cerc-io/hosting
- gitea.com/telackey/act_runner@telackey/entrypoint - git.vdb.to/cerc-io/act_runner
containers: containers:
- cerc/act-runner - cerc/act-runner
- cerc/act-runner-task-executor - cerc/act-runner-task-executor