Last active
March 30, 2024 23:31
-
-
Save GuyPaddock/b260026169e86c6538f38e6e8cd9ba09 to your computer and use it in GitHub Desktop.
Revisions
-
Guy Elsmore-Paddock revised this gist
Mar 30, 2024 . No changes.There are no files selected for viewing
-
Guy Elsmore-Paddock revised this gist
Nov 7, 2023 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -56,7 +56,7 @@ for multidev in "${multidevs[@]}"; do done # Or, clean-up all tags: # git tag | grep pantheon_mr | while read tag; do # git push origin ":${tag}" # git tag -d "${tag}" # done -
Guy Elsmore-Paddock revised this gist
Jul 10, 2023 . 1 changed file with 49 additions and 11 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -1,21 +1,59 @@ #!/usr/bin/env bash set -euo pipefail if [[ "$#" -eq 0 ]]; then { echo "Usage: ${0} <multi-dev 1> [multi-dev 2]... etc." echo echo "For example:" echo " ${0} mr-819 mr-815 mr-814" echo } >&2 exit 1 fi if [[ ! -d ".git" ]]; then { echo "This must be run inside a checked-out copy of the pantheon-d8-prototype site." echo } >&2 exit 2 fi echo "## Refreshing Tags" git fetch origin --tags echo if ! git rev-parse -q --verify "refs/tags/pantheon_live_1" >/dev/null; then { echo "This must be run inside a checked-out copy of the pantheon-d8-prototype site." echo } >&2 exit 2 fi site_id="e450db97-5017-4aef-b21b-26f9f64da921" multidevs=("$@") for multidev in "${multidevs[@]}"; do echo "## Removing '${site_id}.${multidev}'" echo "### Deleting Multi-Dev" ( set -x terminus multidev:delete "${site_id}.${multidev}" --delete-branch --yes ) echo "" echo "### Cleaning Up Tag" ( set -x git push origin ":pantheon_${multidev}_1" git tag -d "pantheon_${multidev}_1" ) echo "" done # Or, clean-up all tags: # git tag | grep pantheon_mr | while read tag; do -
Guy Elsmore-Paddock revised this gist
Jan 21, 2023 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -9,7 +9,7 @@ multidevs=( mr-714 ) for multidev in "${multidevs[@]}"; do terminus multidev:delete "${site_id}.${multidev}" --delete-branch; git push origin ":pantheon_${multidev}_1" -
Guy Elsmore-Paddock created this gist
Apr 25, 2022 .There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,24 @@ #!/usr/bin/env bash site_id="SITE ID" multidevs=( mr-716 mr-718 mr-717 mr-714 ) for multidev in "${multidevs}"; do terminus multidev:delete "${site_id}.${multidev}" --delete-branch; git push origin ":pantheon_${multidev}_1" git tag -d "pantheon_${multidev}_1" done # Or, clean-up all tags: # git tag | grep pantheon_mr | while read tag; do # git push origin ":${tag}" # git tag -d "${tag}" # done