Merge branch 'release/1.2.3'
This commit is contained in:
commit
9d00ddde96
31
Makefile
31
Makefile
@ -5,24 +5,27 @@ help:
|
|||||||
|
|
||||||
repo=yardstick
|
repo=yardstick
|
||||||
project=braid
|
project=braid
|
||||||
tag=$(shell git rev-parse --short=7 HEAD)
|
|
||||||
branch=$(shell git rev-parse --abbrev-ref HEAD)
|
branch=$(shell git rev-parse --abbrev-ref HEAD)
|
||||||
version=$(shell git describe --exact-match --tags $(git log -n1 --pretty='%h'))
|
tag=$(shell echo $(branch) | grep -Eo 'feature/([A-Za-z]+-[0-9]*)' | grep -Eo '[A-Za-z]+-[0-9]*' || \
|
||||||
|
echo $(branch) | grep -Eo '(release|hotfix)/[[:digit:]]+\.[[:digit:]]+\.[[:digit:]]+' | grep -Eo '[[:digit:]]+\.[[:digit:]]+\.[[:digit:]]+' || \
|
||||||
|
echo $(branch) | grep -Eo 'YASDEV-([[:digit:]]*)')
|
||||||
full: build push ## build the docker container completely
|
full: build push
|
||||||
|
|
||||||
|
|
||||||
build: ## build the production dockerfile
|
build: ## build the production dockerfile
|
||||||
docker build -t $(repo)/$(project):$(tag) \
|
@if [[ -n "$(tag)" ]]; then \
|
||||||
-t $(repo)/$(project):$(branch) \
|
echo "$(tag)" > docker_tag.txt; \
|
||||||
.
|
docker build -t $(repo)/$(project):$(tag) .; \
|
||||||
if git describe --exact-match --tags $(shell git log -n1 --pretty='%h'); then \
|
else \
|
||||||
docker tag $(repo)/$(project):$(tag) $(repo)/$(project):$(version); \
|
echo "Nothing to build."; \
|
||||||
fi
|
fi
|
||||||
push: ## push the production dockerfile
|
push: ## push the production dockerfile
|
||||||
docker push $(repo)/$(project):$(tag)
|
@if [[ -n "$(tag)" ]]; then \
|
||||||
docker push $(repo)/$(project):$(branch)
|
docker push $(repo)/$(project):$(tag); \
|
||||||
if git describe --exact-match --tags $(shell git log -n1 --pretty='%h'); then \
|
else \
|
||||||
docker push $(repo)/$(project):$(version); \
|
echo "Nothing to push."; \
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
display: ## display the tag/branch values for development testing
|
||||||
|
@echo "branch: $(branch)"
|
||||||
|
@echo "tag: $(tag)"
|
@ -1,4 +1,4 @@
|
|||||||
# BRAID v1.2.2
|
# BRAID v1.2.3
|
||||||
> Websocket server for the Measure platform
|
> Websocket server for the Measure platform
|
||||||
|
|
||||||
[](https://semaphoreci.com/yardstick/braid)
|
[](https://semaphoreci.com/yardstick/braid)
|
||||||
|
1
docker_tag.txt
Normal file
1
docker_tag.txt
Normal file
@ -0,0 +1 @@
|
|||||||
|
1.2.3
|
2
package-lock.json
generated
2
package-lock.json
generated
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "braid",
|
"name": "braid",
|
||||||
"version": "1.2.2",
|
"version": "1.2.3",
|
||||||
"lockfileVersion": 1,
|
"lockfileVersion": 1,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
module.exports = {
|
module.exports = {
|
||||||
version : '1.2.2',
|
version : '1.2.3',
|
||||||
whitelist : (process.env.WHITELIST || 'http://admin.localhost').split(','),
|
whitelist : (process.env.WHITELIST || 'http://admin.localhost').split(','),
|
||||||
secret : process.env.SECRET || 'test',
|
secret : process.env.SECRET || 'test',
|
||||||
devToken: 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJkYXRhIjp7ImNsaWVudCI6InRlc3QiLCJjbGllbnRfdHlwZSI6InNpdGUiLCJ1c2VyX3R5cGUiOiJ1c2VyIiwidXNlcl9pZCI6MjAwLCJjaGFubmVsIjoidGVzdF9jaGFubmVsIn0sImF1ZCI6ImludGVybmFsIiwiaXNzIjoiWWFyZHN0aWNrIFNvZnR3YXJlIiwic3ViIjoiQnJhaWQgSldUIn0.5KNCov_EW1cycT4Ay0oSvk4Z4PHFedd3bWOyqkHHTBQ',
|
devToken: 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJkYXRhIjp7ImNsaWVudCI6InRlc3QiLCJjbGllbnRfdHlwZSI6InNpdGUiLCJ1c2VyX3R5cGUiOiJ1c2VyIiwidXNlcl9pZCI6MjAwLCJjaGFubmVsIjoidGVzdF9jaGFubmVsIn0sImF1ZCI6ImludGVybmFsIiwiaXNzIjoiWWFyZHN0aWNrIFNvZnR3YXJlIiwic3ViIjoiQnJhaWQgSldUIn0.5KNCov_EW1cycT4Ay0oSvk4Z4PHFedd3bWOyqkHHTBQ',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user