Skip to content

Commit

Permalink
Add ENV VAR for bintars worker name/port
Browse files Browse the repository at this point in the history
  • Loading branch information
fauust committed Mar 19, 2024
1 parent 462e2a1 commit de2607d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 2 additions & 0 deletions docker-compose/.env
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,5 @@ NGINX_ARTIFACTS_VHOST="ci.mariadb.org"
ENVIRON="PROD"
BRANCH="main"
MASTER_NONLATENT_DOCKERLIBRARY_WORKER="bb-rhel8-docker"
MASTER_NONLATENT_BINTARS_WORKER="monty-bbw1-x64"
MASTER_NONLATENT_BINTARS_WORKER_PORT="10002"
2 changes: 2 additions & 0 deletions docker-compose/.env.dev
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,5 @@ NGINX_ARTIFACTS_VHOST="ci.dev.mariadb.org"
ENVIRON="DEV"
BRANCH="dev"
MASTER_NONLATENT_DOCKERLIBRARY_WORKER="bb-rhel9-docker"
MASTER_NONLATENT_BINTARS_WORKER="ro-apexis-bbw03-x64"
MASTER_NONLATENT_BINTARS_WORKER_PORT="10007"
4 changes: 2 additions & 2 deletions master-bintars/master.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ c["buildbotURL"] = os.getenv("BUILDMASTER_URL", default="https://buildbot.mariad
# could connect to your master with this protocol.
# 'port' must match the value configured into the workers (with their
# --master option)
port = int(os.getenv("PORT", default="10002"))
port = int(os.getenv("MASTER_NONLATENT_BINTARS_WORKER_PORT", default="10002"))
c["protocols"] = {"pb": {"port": port}}

####### DB URL
Expand Down Expand Up @@ -109,7 +109,7 @@ def mkWorker(name, **kwargs):
# worker name and password must be configured on the worker.
c["workers"] = []

c["workers"].append(mkWorker("monty-bbw1-x64", max_builds=1, properties={"jobs": 12}))
c["workers"].append(mkWorker(os.getenv("MASTER_NONLATENT_BINTARS_WORKER", default="monty-bbw1-x64"), max_builds=1, properties={"jobs": 12}))


####### FACTORY CODE
Expand Down

0 comments on commit de2607d

Please sign in to comment.