Skip to content

Release procedure

Roman Kalyakin edited this page Feb 13, 2020 · 8 revisions
  1. Add new release date and versions to be released to Release history page

  2. In every project to be released (frontend, middle-layer, user-admin):

    1. Pull develop branch, increment version in package.json (if applicable)
    2. Do npm install, commit and push develop branch.
    3. Create a pull request develop -> master. Name it with new version. Merge it without squashing
    4. Check out and pull master, tag it with new version, e.g. git tag v2.1.0
    5. Push tags to GitHub: git push origin --tags
    6. Github Actions will build and push new images to docker hub. It may take up to 10 minutes.
  3. Test locally with docker-compose:

    1. Make sure config folder in docker-stack project contains config files for production
    2. Edit .env file and set components versions to corresponding versions
    3. Run docker-compose pull and then docker-compose up
    4. Verify that the app works via http://localhost/app
    5. Stop docker-compose and revert changes in .env file: git checkout .env
  4. On production server:

    1. Edit .env file and set components versions to corresponding versions
    2. Run docker-compose pull to get new images
    3. Run docker-compose up -d to restart the app
    4. Verify that the app works via https://impresso-project.ch/app/
Clone this wiki locally