This commit is contained in:
Mike Farah
2021-02-11 10:58:40 +11:00
parent 4d8b64d05c
commit 34bc33d5c5
5 changed files with 60 additions and 4 deletions
+21
View File
@@ -0,0 +1,21 @@
## Read boolean environment variable as a string
Running
```bash
myenv="true" yq eval --null-input 'strenv(myenv)'
```
will output
```yaml
12
```
## Read numeric environment variable as a string
Running
```bash
myenv="12" yq eval --null-input 'strenv(myenv)'
```
will output
```yaml
12
```