mirror of
https://github.com/Evolix/chexpire.git
synced 2024-05-05 18:25:09 +02:00
Update production deployment script
add a tag and a branch
This commit is contained in:
parent
6cf33bbc0c
commit
f37cc2abe4
|
@ -34,7 +34,18 @@ if [ "${confirmed}" != "y" ]; then
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "🚀 Deploying master to production !"
|
echo "🚀 Deploying ${CURRENT_BRANCH} to production !"
|
||||||
|
|
||||||
|
# une branche "production" est (re)initialisée sur le commit courant
|
||||||
|
git branch -f production
|
||||||
|
# … et poussée sur le mote "origin"
|
||||||
|
git push --force origin production
|
||||||
|
|
||||||
|
# et le déploiement a lieu
|
||||||
bundle exec cap production deploy
|
bundle exec cap production deploy
|
||||||
|
|
||||||
|
# création du tag
|
||||||
|
TAG="prod-${TIMESTAMP}-$(logname)"
|
||||||
|
git tag ${TAG} && git push origin tag ${TAG}
|
||||||
|
|
||||||
echo "😎 Done !"
|
echo "😎 Done !"
|
||||||
|
|
Loading…
Reference in a new issue