21
1
Fork 0
mirror of https://github.com/Evolix/chexpire.git synced 2024-05-03 09:20:49 +02:00
chexpire/script/to_staging

21 lines
470 B
Plaintext
Raw Permalink Normal View History

2022-02-13 19:40:00 +01:00
#!/bin/bash
2018-05-24 11:43:34 +02:00
# Copyright (C) 2018 Colin Darie <colin@darie.eu>, 2018 Evolix <info@evolix.fr>
# License: GNU AGPL-3+ (see full text in LICENSE file)
2018-05-24 11:43:34 +02:00
set -e
[ -n "$DEBUG" ] && set -x
2019-08-25 17:36:36 +02:00
echo "👀 Fetching git repository information…"
git fetch origin --quiet
2022-02-13 19:40:00 +01:00
CURRENT_BRANCH=$(git rev-parse --abbrev-ref HEAD)
2019-08-25 17:36:36 +02:00
echo "🚀 Deploying ${CURRENT_BRANCH} to staging !"
2018-05-24 11:43:34 +02:00
git branch -f staging
git push --force origin staging
bundle exec cap staging deploy
2019-08-25 17:36:36 +02:00
echo "😎 Done !"