title: Gitlab deploy script - envsubst: command not found
body: <p>I have a gitlab repo with CI/CD pipeline. It has deploy.sh script, which runs smoothly until envsubst command:</p>
  <pre><code>#!/bin/bash
  
  set -e
  &lt;...&gt;
  # deploy via ssh
  SSH=&quot;ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -o LogLevel=ERROR -l $SSH_USER 
  $HOST&quot;
  
  echo &quot;create project dir&quot;
  $SSH &quot;mkdir -p $PROJECT_ROOT&quot;
  
  echo &quot;create env file&quot;
  envsubst &lt; $CI_ENVIRONMENT_NAME.tmpl.env | $SSH &quot;cat &gt; ${PROJECT_ROOT}/${CI_ENVIRONMENT_NAME}.env&quot;
  </code></pre>
  <p>Job fails with error:</p>
  <pre><code>create env file
  ./deploy.sh: line 65: envsubst: command not found
  </code></pre>
  <p>Headers of '.gitlab-ci.yml' file:</p>
  <pre><code>image: docker:latest
  services:
    - docker:dind
  </code></pre>