-
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 pushdevelop
branch. -
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:
-
for impresso-frontend
docker build \ -t impresso/impresso-frontend:v2.3.2 \ --build-arg GIT_BRANCH=$(shell git rev-parse --abbrev-ref HEAD) \ --build-arg GIT_REVISION=$(shell git rev-parse --short HEAD) .
-
for impresso-middle-layer
docker build \ -t impresso/impresso-middle-layer:v1.3.1 \ --build-arg GIT_BRANCH=$(shell git rev-parse --abbrev-ref HEAD) \ --build-arg GIT_REVISION=$(shell git rev-parse --short HEAD) .
-
for impresso-user-admin
docker build -t impresso/impresso-user-admin:v1.2.1 .
-
-
Push image to docker hub:
- E.g.
docker push impresso/impresso-frontend:v2.3.2
- Or
docker push impresso/impresso-middle-layer:v1.3.1
- Or
docker push impresso/impresso-user-admin:v1.2.1
- E.g.
-
-
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