Skip to content

Release procedure

Daniele Guido 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. checkout master, then remove your local develop branch. Checkout developso that you have the vey latest version of develop...
    2. While in develop branch set new version in package.json (if applicable)
    3. Do npm install, commit and push.
    4. Create a pull request develop -> master
    5. Merge it
    6. Check out master
    7. Tag master with new version. E.g. git tag v2.1.0
    8. Push tags to GitHub: git push origin --tags
    9. 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 .
    10. 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 -d to restart the app
    4. Verify that the app works via https://impresso-project.ch/app/
Clone this wiki locally