P5-4836 deploy api to production (new hostname)

This commit is contained in:
Niklas Fondberg
2020-02-27 13:06:58 +01:00
committed by GitHub
parent d2c567a7cd
commit b08aa76acc
9 changed files with 677 additions and 20 deletions
+18
View File
@@ -0,0 +1,18 @@
publish-to-staging:
@current_branch=$$(git rev-parse --abbrev-ref HEAD); \
git branch -D staging 2>/dev/null; \
git checkout -b staging; \
git merge $$current_branch && \
git push -f origin staging && \
git checkout $$current_branch; \
echo Pushed $$current_branch to staging
sync-master-to-staging:
@current_branch=$$(git rev-parse --abbrev-ref HEAD); \
git branch -D staging 2>/dev/null; \
git checkout master && \
git pull origin master && \
git checkout -b staging && \
git push -f origin staging && \
git checkout $$current_branch && \
echo Pushed master to staging