Skip to content

Commit

Permalink
Use envsubst for live-overlay.yaml (kairos-io#662)
Browse files Browse the repository at this point in the history
Signed-off-by: Mauro Morales <mauro.morales@spectrocloud.com>

Signed-off-by: Mauro Morales <mauro.morales@spectrocloud.com>
  • Loading branch information
mauromorales authored Jan 19, 2023
1 parent 7b81737 commit b2f28bc
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 11 deletions.
13 changes: 2 additions & 11 deletions Earthfile
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
11 changes: 11 additions & 0 deletions tests/assets/live-overlay.tmpl
Original file line number Diff line number Diff line change
@@ -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}

0 comments on commit b2f28bc

Please sign in to comment.