Skip to content

Commit

Permalink
env ENVIRON as DEV/PROD differenciator
Browse files Browse the repository at this point in the history
  • Loading branch information
grooverdan committed Nov 1, 2023
1 parent 0fd9198 commit f25c6a1
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 9 deletions.
1 change: 1 addition & 0 deletions docker-compose/.env
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@ MQ_ROUTER_URL=ws://localhost:8085/ws
MASTER_PACKAGES_DIR="/mnt/autofs/master_packages"
GALERA_PACKAGES_DIR="/mnt/autofs/galera_packages"
ARTIFACTS_URL="https://ci.mariadb.org"
ENVIRON="PROD"
1 change: 1 addition & 0 deletions docker-compose/.env.dev
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@ MQ_ROUTER_URL=ws://crossbar:8080/ws
MASTER_PACKAGES_DIR="/mnt/autofs/master_dev_packages"
GALERA_PACKAGES_DIR="/mnt/autofs/galera_dev_packages"
ARTIFACTS_URL="https://ci.dev.mariadb.org"
ENVIRON="DEV"
20 changes: 11 additions & 9 deletions master-galera/master.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -96,15 +96,17 @@ schedulerTrigger = schedulers.AnyBranchScheduler(
)
c["schedulers"].append(schedulerTrigger)

schedulerTrigger = schedulers.AnyBranchScheduler(
name="s_upstream_galera_vlad",
change_filter=util.ChangeFilter(
repository="https://github.com/vladbogo/galera", branch_fn=upstream_branch_fn
),
treeStableTimer=60,
builderNames=builders_galera,
)
c["schedulers"].append(schedulerTrigger)
if os.getenv("ENVIRON") == "DEV":
schedulerTrigger = schedulers.AnyBranchScheduler(
name="s_upstream_galera_vlad",
change_filter=util.ChangeFilter(
repository="https://github.com/vladbogo/galera",
branch_fn=upstream_branch_fn,
),
treeStableTimer=60,
builderNames=builders_galera,
)
c["schedulers"].append(schedulerTrigger)

####### WORKERS

Expand Down

0 comments on commit f25c6a1

Please sign in to comment.