Browse Source

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
changes/99/784999/6
Anderson, Craig (ca846m) 4 months ago
parent
commit
b2fddf30fd
  1. 2
      .zuul.yaml
  2. 6
      image-builder/Makefile
  3. 2
      playbooks/airship-images-build.yaml
  4. 2
      playbooks/airship-images-publish.yaml

2
.zuul.yaml

@ -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

6
image-builder/Makefile

@ -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"

2
playbooks/airship-images-build.yaml

@ -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

2
playbooks/airship-images-publish.yaml

@ -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…
Cancel
Save