File tree Expand file tree Collapse file tree 1 file changed +11
-3
lines changed Expand file tree Collapse file tree 1 file changed +11
-3
lines changed Original file line number Diff line number Diff line change @@ -98,7 +98,14 @@ DISTROS = [
98
98
# PACKAGE_SOURCES - list of known package sources
99
99
DEFAULT = "default"
100
100
NIGHTLY = "nightly"
101
- PACKAGE_SOURCES = [DEFAULT , NIGHTLY ]
101
+ DEVBUILDS = "devbuilds"
102
+ PACKAGE_SOURCES = [DEFAULT , NIGHTLY , DEVBUILDS ]
103
+
104
+ PACKAGES_FROM = {
105
+ DEFAULT : '' ,
106
+ NIGHTLY : 'samba-nightly' ,
107
+ DEVBUILDS : 'devbuilds' ,
108
+ }
102
109
103
110
# SOURCE_DIRS - image source paths
104
111
# (paths are relative to common image source dir)
@@ -196,8 +203,9 @@ def container_engine(cli):
196
203
def container_build (cli , target ):
197
204
"""Construct and execute a command to build the target container image."""
198
205
args = [container_engine (cli ), "build" ]
199
- if target .pkg_source == NIGHTLY :
200
- args .append ("--build-arg=INSTALL_PACKAGES_FROM=samba-nightly" )
206
+ pkgs_from = PACKAGES_FROM [target .pkg_source ]
207
+ if pkgs_from :
208
+ args .append (f"--build-arg=INSTALL_PACKAGES_FROM={ pkgs_from } " )
201
209
# docker doesn't currently support alt. architectures
202
210
if "docker" in args [0 ]:
203
211
if target .arch != host_arch ():
You can’t perform that action at this time.
0 commit comments