mirror of
https://github.com/labring/sealos.git
synced 2026-10-31 02:11:58 +08:00
* ci: improve workflow and fix ut error * ci: fix typo in ci.yml * ci: add ignore path for license.verify * fix: fix lint errors * fix: fix error in running golangci-lint * ci: fix binary name error in goreleaser.yml * ci: add a workflow that deletes stale workflows * ci: Make build workflow even more concurrent * ci: finalize changes
ENV module
This module will merge the host env and global env, then render env into cloudrootfs templates or set env when exec a shell command and script.
ENV template render
ENV module only render the filename has ".tmpl" suffix, and render the result into a new file.
Like: test.yaml.tmpl -> test.yaml
test.yaml.tmpl:
{{ .foo }}
render result, test.yaml:
bar
Shell ENV
Add ENV value to each shell command.
Raw shell command:
cat /etc/hosts
WrapperShell:
foo=bar cat /etc/hosts