Monthly Archives: August 2018

GitLab CI + CD

Find Docker image for the build Dependencies: node/npm java8 gradle sshpass For build you can use for example the following image: For deployment you need sshpass, so you can take the following image: Runner see GitLab Runner Doc CI script see CI yaml docu Secret variables to use in CI script: […]


Read a template file and replace placeholder script-template.txt #!/bin/bash echo “–TIMESTAMP–” #!/bin/bash # Get variables timestamp=`date` # Replace placeholder content=`cat ./script-template.txt` content=`echo “${content/–TIMESTAMP–/$timestamp}”` # Generate a script echo “$content” > chmod +x