[19.02.20] Removed sh execution within sh script

This commit is contained in:
andyjk15 2020-02-19 16:22:28 +00:00
parent d85c9af509
commit 3a60855c51

View File

@ -5,10 +5,10 @@ APPLICATION_NAME=$2
APPLICATION_VERSION=$3
APPLICATION_LABEL=$4
sh "sed -i 's/REPOSITORY/${DOCKER_REPOSITORY}/g' configuration/kubernetes/deployment.yaml"
sh "sed -i 's/IMAGE/${APPLICATION_NAME}:${APPLICATION_VERSION}/g' configuration/kubernetes/deployment.yaml"
sh "sed -i 's/RESOURCE_NAME/${APPLICATION_NAME}/g' configuration/kubernetes/deployment.yaml"
sh "sed -i 's/LABEL/${APPLICATION_LABEL}/g' configuration/kubernetes/deployment.yaml"
sed -i 's/REPOSITORY/${DOCKER_REPOSITORY}/g' configuration/kubernetes/deployment.yaml
sed -i 's/IMAGE/${APPLICATION_NAME}:${APPLICATION_VERSION}/g' configuration/kubernetes/deployment.yaml
sed -i 's/RESOURCE_NAME/${APPLICATION_NAME}/g' configuration/kubernetes/deployment.yaml
sed -i 's/LABEL/${APPLICATION_LABEL}/g' configuration/kubernetes/deployment.yaml
sh "sed -i 's/RESOURCE_NAME/${APPLICATION_NAME}/g' configuration/kubernetes/service.yaml"
sh "sed -i 's/LABEL/${APPLICATION_LABEL}/g' configuration/kubernetes/service.yaml"
sed -i 's/RESOURCE_NAME/${APPLICATION_NAME}/g' configuration/kubernetes/service.yaml
sed -i 's/LABEL/${APPLICATION_LABEL}/g' configuration/kubernetes/service.yaml