Skip to content

Deploy Process

Jacky Jiang edited this page Oct 21, 2021 · 7 revisions
  • Check IndexDefinition.scala to see if there's been any index updates.
    • If there has, manually set the search-api index version to the old index
  • cd to the config directory of the site to be updated
  • Ensure you're on master, run git pull and git status to make sure you're up to date and don't have any local changes
  • Run helm to upgrade:
kubectl config get-contexts # MAKE SURE YOU'RE ON THE RIGHT CONTEXT. EVERY TIME!!!!
helm repo update
helm upgrade magda magda-io/magda --timeout 30000 --install -f config.yaml --version=<version>
  • While doing this, run kubectl get pods -w in another window to monitor progress
  • Once complete, check the site is running correctly - check the homepage, the search page and a dataset page
  • Check that the minions are successfully running
  • Check that Google Analytics can still see you.
  • If there was a search index upgrade, run kubectl logs -f indexer<tab> to wait until the indexer is finished indexing it, then remove the index version and redeploy with no hooks:
helm upgrade magda magda-io/magda --timeout 30000 --install -f config.yaml --version=<version> --no-hooks