gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[taler-deployment] branch master updated: ci: add support for foreign ar


From: gnunet
Subject: [taler-deployment] branch master updated: ci: add support for foreign arch containers
Date: Thu, 23 Nov 2023 05:53:49 +0100

This is an automated email from the git hooks/post-receive script.

devan-carpenter pushed a commit to branch master
in repository deployment.

The following commit(s) were added to refs/heads/master by this push:
     new cc5b22d  ci: add support for foreign arch containers
cc5b22d is described below

commit cc5b22d0fff0b2a892b459e1402dabcff4dbdf7f
Author: Devan Carpenter <devan@taler.net>
AuthorDate: Wed Nov 22 23:52:58 2023 -0500

    ci: add support for foreign arch containers
---
 buildbot/master.cfg | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/buildbot/master.cfg b/buildbot/master.cfg
index 93b3eef..8935409 100644
--- a/buildbot/master.cfg
+++ b/buildbot/master.cfg
@@ -188,6 +188,7 @@ def container_add_step(HALT_ON_FAILURE,
                        factory,
                        WORK_DIR,
                        stepName,
+                       CONTAINER_ARCH="amd64",
                        jobCmd="/workdir/contrib/ci/ci.sh",
                        containerFile="contrib/ci/Containerfile"):
     print(f"HALT_ON_FAILURE: {HALT_ON_FAILURE}, WARN_ON_FAILURE: 
{WARN_ON_FAILURE}, CONTAINER_BUILD: {CONTAINER_BUILD}, CONTAINER_NAME: 
{CONTAINER_NAME}")
@@ -196,6 +197,7 @@ def container_add_step(HALT_ON_FAILURE,
                 name=stepName,
                 commands=[
                     util.ShellArg(command=["podman", "run", "--rm",
+                                           "--arch", CONTAINER_ARCH,
                                            "--add-host", 
"taler.host.internal:10.0.2.2",
                                            "--network", 
"slirp4netns:allow_host_loopback=true",
                                            "--env", 
util.Interpolate("CI_COMMIT_REF=%(src::revision)s"),
@@ -214,9 +216,11 @@ def container_add_step(HALT_ON_FAILURE,
                 name=stepName,
                 commands=[
                     util.ShellArg(command=["podman", "build", "-t", 
CONTAINER_NAME,
+                                           "--arch", CONTAINER_ARCH,
                                            "-f", containerFile, "."],
                                   logname='build container', 
haltOnFailure=True),
                     util.ShellArg(command=["podman", "run", "--rm",
+                                           "--arch", CONTAINER_ARCH,
                                            "--add-host", 
"taler.host.internal:10.0.2.2",
                                            "--network", 
"slirp4netns:allow_host_loopback=true",
                                            "--env", 
util.Interpolate("CI_COMMIT_REF=%(src::revision)s"),
@@ -1115,6 +1119,7 @@ class GenerateStagesCommand(buildstep.ShellMixin, 
steps.BuildStep):
                     self.configDict[stage]["CONTAINER_NAME"],
                     container_factory,
                     CONTAINER_WORKDIR,
+                    self.configDict[stage]["CONTAINER_ARCH"],
                     stage,
                     f"contrib/ci/jobs/{stage}/job.sh")
                 for stage in jobDirs

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]