-
Notifications
You must be signed in to change notification settings - Fork 0
Release procedure
Daniele Guido edited this page Feb 13, 2020
·
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
):- checkout
master
, then remove your localdevelop
branch. Checkoutdevelop
so that you have the vey latest version ofdevelop
... - While in develop branch set new version in
package.json
(if applicable) - Do
npm install
, commit and push. - 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.
- checkout
- 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 -d
to restart the app - Verify that the app works via https://impresso-project.ch/app/
- Edit