This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# автоустановка: | |
# | |
# bash <(curl -fsSL https://gist.github.com/crazy-alert/1993f2383517d9fbb2ec319f1d4c945f/raw/deploy.sh) | |
# | |
set -e # Выход при ошибке | |
# Цвета для вывода |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Deploy to server via SSH | |
on: | |
push: | |
branches: | |
- master |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
os=`cat /etc/issue |grep -c CentOS` | |
if [ $os = "0" ]; then | |
echo "This script work only on CentOS. Exit." | |
exit |