Skip to content

Commit

Permalink
added uniq_id
Browse files Browse the repository at this point in the history
  • Loading branch information
itai-codefresh authored Apr 18, 2017
1 parent 2097d5e commit 684fe91
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cf-deploy-kubernetes.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ deployment_file=${1:-deployment.yml}

[ ! -f "${deployment_file}" ] && echo "Couldn't find $deployment_file file at $(pwd)" && exit 1;
sed -i "s/\$DOCKER_IMAGE_TAG/$DOCKER_IMAGE_TAG/g" $deployment_file
sed -i "s/\$UNIQ_ID/$(date '+%y-%m-%d_%H:%M:%S')/g" $deployment_file


echo "---> Setting up Kubernetes credentials..."
kubectl config set-credentials deployer --username=$KUBERNETES_USER --password=$KUBERNETES_PASSWORD
Expand Down

0 comments on commit 684fe91

Please sign in to comment.