Skip to content

Release procedure

Roman Kalyakin edited this page Nov 29, 2019 · 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. While in develop branch set new version in package.json (if applicable)
    2. Create a pull request develop -> master
    3. Merge it
    4. Check out master
    5. Tag master with new version. E.g. git tag v2.1.0
    6. Push tags to GitHub: git push origin --tags
    7. Build image tagged with version:
      1. E.g. docker build -t impresso/impresso-frontend:v2.1.0 .
      2. Or docker build -t impresso/impresso-middle-layer:v1.1.0 .
      3. Or docker build -t impresso/impresso-user-admin:v1.0.0 .
    8. Push image to docker hub:
      1. E.g. docker push impresso/impresso-frontend:v2.1.0
      2. Or docker push impresso/impresso-middle-layer:v1.1.0
      3. Or docker push impresso/impresso-user-admin:v1.0.0
  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 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 to restart the app
    4. Verify that the app works via https://impresso-project.ch/app/
Clone this wiki locally