dev:
scheme: ftp
host: ftp.my-dev-server.com
port: 21
user: user
pass: password
check: true
path:
local: release/
remote: public_html/
stage:
scheme: ftp
host: ftp.my-stage-server.com
port: 21
user: user
pass: password
check: true
path:
local: release/
remote: public_html/
live:
scheme: ftp
host: ftp.my-live-server.com
port: 21
user: user
pass: password
check: true
path:
local: release/
remote: public_html/
#!/bin/bash
message=$(git log -1 --all --pretty=%B)
tag="#dploy"
if [[ "$message" = *"$tag"* ]]; then
servers=${tag}${message#*${tag}}
noTag=${servers//#/""}
eval $noTag
fi