Use envsubst for live-overlay.yaml (#662)

Signed-off-by: Mauro Morales <mauro.morales@spectrocloud.com>

Signed-off-by: Mauro Morales <mauro.morales@spectrocloud.com>
This commit is contained in:
Mauro Morales 2023-01-19 12:01:41 +01:00 committed by GitHub
parent 7b817379c1
commit b2f28bca49
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 13 additions and 11 deletions

View File

@ -624,18 +624,9 @@ examples-bundle:
examples-bundle-config:
ARG BUNDLE_IMAGE
FROM alpine
RUN apk add gettext
COPY . .
RUN echo "" >> tests/assets/live-overlay.yaml
RUN echo "install:" >> tests/assets/live-overlay.yaml
RUN echo " auto: true" >> tests/assets/live-overlay.yaml
RUN echo " reboot: true" >> tests/assets/live-overlay.yaml
RUN echo " device: auto" >> tests/assets/live-overlay.yaml
RUN echo " grub_options:" >> tests/assets/live-overlay.yaml
RUN echo " extra_cmdline: foobarzz" >> tests/assets/live-overlay.yaml
RUN echo " bundles:" >> tests/assets/live-overlay.yaml
RUN echo " - rootfs_path: /usr/local/lib/extensions/kubo" >> tests/assets/live-overlay.yaml
RUN echo " targets:" >> tests/assets/live-overlay.yaml
RUN echo " - container://${BUNDLE_IMAGE}" >> tests/assets/live-overlay.yaml
RUN envsubst >> tests/assets/live-overlay.yaml < tests/assets/live-overlay.tmpl
SAVE ARTIFACT tests/assets/live-overlay.yaml AS LOCAL bundles-config.yaml
webui-deps:

View File

@ -0,0 +1,11 @@
install:
auto: true
reboot: true
device: auto
grub_options:
extra_cmdline: foobarzz
bundles:
- rootfs_path: /usr/local/lib/extensions/kubo
targets:
- container://${BUNDLE_IMAGE}