Skip to content
  • Thong Kuah's avatar
    Solve multi word CI variables not quoted properly · dddbc353
    Thong Kuah authored
    ie. fix below quoting issue:
    
    ```
    kubectl create secret -n project-with-autodevops-900057eb1ce34399-77 \
      generic production-secret \
      '--from-literal=OPTIONAL_MESSAGE=You' can see this secret \
      -o yaml --dry-run
    ```
    
    With fix, it should be generating:
    
    ```
    kubectl create secret -n project-with-autodevops-900057eb1ce34399-77 \
      generic production-secret \
      --from-literal 'OPTIONAL_MESSAGE=You can see this secret' \
      -o yaml --dry-run
    ```
    
    Call via bash -c, instead of assuming bash
    
    The shell is /bin/sh, so we cannot asssume bash. Hence we use `bash -c`
    
    bash is installed for deploy jobs in a prior step
    dddbc353