-
Notifications
You must be signed in to change notification settings - Fork 0
Release procedure
Roman Kalyakin edited this page Nov 29, 2019
·
8 revisions
- Add new release date and versions to be released to Release history page
- In every project to be released (
frontend
,middle-layer
,user-admin
):- While in develop branch set new version in
package.json
(if applicable) - Create a pull request
develop -> master
- Merge it
- Check out
master
- Tag
master
with new version. E.g.git tag v2.1.0
- Push tags to GitHub:
git push origin --tags
- Build image tagged with version:
- E.g.
docker build -t impresso/impresso-frontend:v2.1.0 .
- Or docker
build -t impresso/impresso-middle-layer:v1.1.0 .
- Or docker
build -t impresso/impresso-user-admin:v1.0.0 .
- E.g.
- Push image to docker hub:
- E.g.
docker push impresso/impresso-frontend:v2.1.0
- Or
docker push impresso/impresso-middle-layer:v1.1.0
- Or
docker push impresso/impresso-user-admin:v1.0.0
- E.g.
- While in develop branch set new version in
- Test locally with
docker-compose
:- Make sure config folder in docker-stack project contains config files for production
- Edit
.env
file and set components versions to corresponding versions - Run
docker-compose up
- Verify that the app works via http://localhost/app
- Stop docker-compose and revert changes in
.env
file:git checkout .env
- On production server:
- Edit
.env
file and set components versions to corresponding versions - Run
docker-compose pull
to get new images - Run
docker-compose up
to restart the app - Verify that the app works via https://impresso-project.ch/app/
- Edit