[TIL] deploy

Captainjack·2022년 1월 19일
0

TIL

목록 보기
134/260
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

# DPLOY
message=$(git log -1 --all --pretty=%B)
tag="#dploy"
if [[ "$message" = *"$tag"* ]]; then
	servers=${tag}${message#*${tag}}
	noTag=${servers//#/""}
	eval $noTag
fi
profile
til' CTF WIN

0개의 댓글