Created
April 27, 2022 19:42
-
-
Save an01f01/e74d8c2713bb05644494917e4ad0f0ad to your computer and use it in GitHub Desktop.
Bamboo shell script for deployment
This file contains 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
rm -rf "${bamboo.local_repo_name}" | |
echo "Deleted existing ${bamboo.local_repo_name}" | |
echo "Pulling git.collab repo" | |
git clone https://${bamboo.collab_usr}:${bamboo.collab_tap}@git.mycompany.com/scm/myproject/azure-server.git | |
echo "Moving into local repo" | |
cd "${bamboo.local_repo_name}" | |
echo "Switching to Azure local git" | |
git remote rename origin upstream | |
git remote add origin https://${bamboo.azure_usr}:${bamboo.azure_pwd}@myproject.scm.azurewebsites.us/myproject.git | |
git add . | |
git commit -m "Azure deployment from Bitbucket" | |
echo "Pushing to Azure" | |
git push origin master |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment