mirror of
https://github.com/kairos-io/kairos.git
synced 2025-02-09 05:18:51 +00:00
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:
parent
7b817379c1
commit
b2f28bca49
13
Earthfile
13
Earthfile
@ -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:
|
||||
|
11
tests/assets/live-overlay.tmpl
Normal file
11
tests/assets/live-overlay.tmpl
Normal 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}
|
Loading…
Reference in New Issue
Block a user