Skip to content

Instantly share code, notes, and snippets.

@an01f01
Created April 27, 2022 19:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save an01f01/e74d8c2713bb05644494917e4ad0f0ad to your computer and use it in GitHub Desktop.
Save an01f01/e74d8c2713bb05644494917e4ad0f0ad to your computer and use it in GitHub Desktop.
Bamboo shell script for deployment
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