Skip to content

Deployment

Matt Poole edited this page Aug 16, 2024 · 1 revision

Requirements:

  • Access to Platform.sh
  • Permission to merge PRs to main

Steps

  1. Create a tag of develop
  • Releases uses [semantic versioning] standards.
  • Use git tag -n9 to list previous tags
  • git tag -a v1.2.0 -m '<Purpose/short message>
  • Push the tag.
  1. Create new draft release in GitHub https://github.com/Bixal/bixal-site-drupal/releases/new
  2. Create a new release branch from develop (release branches don't start with v like the tags)
  • git checkout -b release/1.2.0
  1. Create a PR of the new release with target of main.
  2. Backup main DB
  3. Merge release PR to start the deployment
  • To revert: Put site in maintenance mode, restore the backup in Platform, reverse the merge to get main back how it was with a PR, Merge the reversed release.
  1. Publish the GitHub release as the latest and non-draft.
Clone this wiki locally