Change zuul workdir to match image-builder
jezogwza@gmail.com requested a change from "config" to "manifests", and this change makes zuul params reflective of this. Allow proper operation of "find" with symlinks. Change-Id: I1a20a1d6e2d8af2bd5212b654c7e0a1279a9c625
This commit is contained in:
parent
ee89261169
commit
b2fddf30fd
@ -21,7 +21,7 @@
|
||||
https: ""
|
||||
noproxy: ""
|
||||
makefile_chdir: "{{ zuul.project.src_dir }}"
|
||||
image_config_dir: config
|
||||
image_config_dir: manifests
|
||||
image_prefix: airshipit
|
||||
image_label: org.airshipit.build=community
|
||||
image_tag: latest
|
||||
|
@ -112,7 +112,8 @@ ifeq ($(IMAGE_TYPE), iso)
|
||||
sudo -E tools/cut_image.sh $(IMAGE_TYPE) $(WORKDIR)/iso $(IMAGE) "$(PROXY)" "$(NO_PROXY)"
|
||||
else
|
||||
# Assemble all images based on configs defined in each subdirectory
|
||||
iterDirs=`find $(QCOW_BUNDLE) -maxdepth 1 -mindepth 1 -type d -exec basename {} \;`
|
||||
# Trailing / allows proper function with symlinks
|
||||
iterDirs="$(find $(QCOW_BUNDLE)/ -maxdepth 1 -mindepth 1 -type d -exec basename {} \;)"
|
||||
for subdir in $$iterDirs; do
|
||||
# QCOW configs
|
||||
export osconfig_params="$(QCOW_BUNDLE)/$$subdir/osconfig-vars.yaml"
|
||||
@ -135,7 +136,8 @@ ifneq ($(QCOW_BUNDLE_DIRS), )
|
||||
bundleDirs="$(QCOW_BUNDLE_DIRS)"
|
||||
else
|
||||
# Assemble all images based on configs defined in each $(IMAGE_TYPE)* subdirectory
|
||||
bundleDirs=`find $(WORKDIR) -maxdepth 1 -mindepth 1 -name "qcow-bundle*" -type d -exec basename {} \;`
|
||||
# Trailing / allows proper function with symlinks
|
||||
bundleDirs="$(find $(WORKDIR)/ -maxdepth 1 -mindepth 1 -name "qcow-bundle*" -type d -exec basename {} \;)"
|
||||
endif
|
||||
for bundledir in $$bundleDirs; do
|
||||
export QCOW_BUNDLE="$(WORKDIR)/$$bundledir"
|
||||
|
@ -54,5 +54,5 @@
|
||||
PROXY: "{{ proxy.http }}"
|
||||
QCOW_CONF_DIRS: "{{ qcow_conf_dirs | default('') }}"
|
||||
USE_PROXY: "{{ proxy.enabled | lower }}"
|
||||
WORKDIR: "{{ image_config_dir | default('config') }}"
|
||||
WORKDIR: "{{ image_config_dir | default('manifests') }}"
|
||||
become: True
|
||||
|
@ -60,5 +60,5 @@
|
||||
PROXY: "{{ proxy.http }}"
|
||||
QCOW_CONF_DIRS: "{{ qcow_conf_dirs | default('') }}"
|
||||
USE_PROXY: "{{ proxy.enabled | lower }}"
|
||||
WORKDIR: "{{ image_config_dir | default('config') }}"
|
||||
WORKDIR: "{{ image_config_dir | default('manifests') }}"
|
||||
become: True
|
||||
|
Loading…
Reference in New Issue
Block a user