Skip to content
Snippets Groups Projects
DEPLOYMENT.md 1.55 KiB
Newer Older
# Step by Step deployment guide

egon w. stemle's avatar
egon w. stemle committed
- [ ] Edit CHANGELOG.md
  - [ ] Rename [Unreleased] to [$VERSION]
  - [ ] Reintroduce [Unreleased]
  - [ ] Fix [Unreleased] and add [$VERSION] named link at the end of CHANGELOG.md

- [ ] Commit to master to make sure that the master branch is clean and all
      commits are pushed to origin
      ```
      git commit -m"Bump version to $VERSION"
      git push
      ```

- [ ] `git checkout stable`
egon w. stemle's avatar
egon w. stemle committed

- [ ] `git merge --no-ff master`
egon w. stemle's avatar
egon w. stemle committed

- [ ] (Optional) You can now deploy stable to dspace-dev
      ```
      cd dockerfiles
      ./release.sh $VERSION
      ```

- [ ] Make sure that the stable branch is clean and all commits are pushed to origin
egon w. stemle's avatar
egon w. stemle committed

- [ ] `git checkout production`
egon w. stemle's avatar
egon w. stemle committed

- [ ] `git checkout -b v$VERSION $HASHID`
      The $HASHID being the commit were the last merge from stable happened
      (before clarindev2clarin.sh changes were committed)

- [ ] `git merge --no-ff stable`
egon w. stemle's avatar
egon w. stemle committed

Alexander König's avatar
Alexander König committed
- [ ] resolve conflicts (though there shouldn't be any) and commit
egon w. stemle's avatar
egon w. stemle committed

- [ ] Change the version number and the registry branch of the images in all
      deployment yaml files

- [ ] Run the clarindev2clarin.sh script
egon w. stemle's avatar
egon w. stemle committed

- [ ] `git commit -a `
- [ ] `git checkout production`
egon w. stemle's avatar
egon w. stemle committed

- [ ] `git merge v$VERSION`
- [ ] resolve conflicts and commit
egon w. stemle's avatar
egon w. stemle committed

- [ ] `git tag -a v$VERSION -s (-u $GPG_ID_HASH)` defaults to your default GPG key
- [ ] `git branch -d v$VERSION`
Alexander König's avatar
Alexander König committed
- [ ] `git push --all`
- [ ] `git push --tags`
- [ ] `cd dockerfiles`
egon w. stemle's avatar
egon w. stemle committed
- [ ] `./release.sh v$VERSION production`
- [ ] `cd ../kubernetes`
- [ ] `./stop_kube.sh`
- [ ] `./start_kube.sh`
- [ ] `git checkout master`