Skip to content

Commit

Permalink
Merge pull request #205 from moira-alert/develop
Browse files Browse the repository at this point in the history
Release 2.4.0
  • Loading branch information
borovskyav authored Dec 25, 2018
2 parents 603bb7c + 63b3991 commit a91f0e3
Show file tree
Hide file tree
Showing 65 changed files with 4,891 additions and 3,595 deletions.
27 changes: 21 additions & 6 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ notifications:
on_success: change
on_failure: always
on_start: never
slack:
rooms:
secure: mqHrQAw8feDH8e8+/gV8C1dbeC3e3tkS/AGx9XTtUoCVbY45C0X6KRYaSpK9H1WNjY7AjBnrEjsvQlivhXKIp41FQBhnief1t+0zGtnkwtQiRumWOyoo2uN+BNVE+fE8W0QyasL/SjarBFAqJkbQPH5EiRxcil8Wcuk2mE44a3kRL+sE67rPqjXSvc5t3N5kupziIMW90dxpeV584t3CS5VfPbrwLdrmZtDOgZj6ijsmM41N6+KXl+44LKK0bXApGD4WWX7iESivzjM+mOTVUhO7o17vpQ7JwG3EXymVRxUnIyANWI0KYzQGNwWEl1XWBrkw4/oGW/xOJK9nsW2EkoBnUjERk9xYPzte4RQO2IpnLrBLCWG0HL4NBKfbftJLtUxQFXhzIQ7MqYjwCKrSSK23eNl/qLl+8VkaNBa0hutGBPWYG2KF/SOMu3rPDGGzT+LD/atbAnm/m6M3p2XkR7vHHUgfwZ10vt2HLvpElK6ScT0OhZ1wNtfRnms7HJO44rp4bZMyJURU6wkEMeNoOOrfSVGIkwbXAJja2EGFVBcIeOTJpQBBxWnRCyEC2BmxX2rjuiBibGke7VpmSOUadlQxG7DotspfqzNy93VulI3GnwkZr3PqwBp8/Ce4v68uk/WdOx2Y5ug98CoBqF17XpM2I21wSJxAKu5B1zRgL5I=
on_pull_requests: false
before_install:
- sudo apt-get update
- sudo apt-get -y -o Dpkg::Options::="--force-confnew" install docker-ce
Expand All @@ -23,7 +27,6 @@ before_script:
- gem install fpm
script:
- make packages
- make docker_image
before_deploy:
- docker login -u="$DOCKER_USERNAME" -p="$DOCKER_PASSWORD"
deploy:
Expand All @@ -38,16 +41,28 @@ deploy:
skip_cleanup: true
on:
tags: true
condition: "$TRAVIS_NODE_VERSION = 8"
- provider: script
script: make docker_push
script:
- make docker_feature_image GIT_BRANCH="${TRAVIS_BRANCH////-}"
skip_cleanup: true
on:
all_branches: true
condition: $TRAVIS_PULL_REQUEST == "false" && $TRAVIS_BRANCH =~ ^(feature|hotfix).*$
- provider: script
script:
- make docker_develop_image
skip_cleanup: true
on:
branch: develop
- provider: script
script:
- make docker_latest_image
skip_cleanup: true
on:
branch: master
condition: "$TRAVIS_NODE_VERSION = 8"
- provider: script
script: make docker_push_release
script:
- make docker_release_image
skip_cleanup: true
on:
tags: true
condition: "$TRAVIS_NODE_VERSION = 8"
27 changes: 20 additions & 7 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
GIT_BRANCH := "unknown"
GIT_HASH := $(shell git log --pretty=format:%H -n 1)
GIT_HASH_SHORT := $(shell echo "${GIT_HASH}" | cut -c1-6)
GIT_TAG := $(shell git describe --always --tags --abbrev=0 | tail -c+2)
GIT_COMMIT := $(shell git rev-list v${GIT_TAG}..HEAD --count)
FEATURE_VERSION := ${GIT_TAG}-${GIT_BRANCH}
DEVELOP_VERSION := nightly-${GIT_HASH_SHORT}
VERSION := ${GIT_TAG}.${GIT_COMMIT}
VENDOR := "SKB Kontur"
URL := "https://github.com/moira-alert/web2.0"
Expand Down Expand Up @@ -63,14 +68,22 @@ deb:
.PHONY: packages
packages: clean build tar rpm deb

.PHONY: docker_image
docker_image:
docker build -t moira/web2:${VERSION} -t moira/web2:latest .
.PHONY: docker_feature_image
docker_feature_image:
docker build -t moira/web2:${FEATURE_VERSION} .
docker push moira/web2:${FEATURE_VERSION}

.PHONY: docker_push
docker_push:
.PHONY: docker_develop_image
docker_develop_image:
docker build -t moira/web2:${DEVELOP_VERSION} .
docker push moira/web2:${DEVELOP_VERSION}

.PHONY: docker_latest_image
docker_latest_image:
docker build -t moira/web2:latest .
docker push moira/web2:latest

.PHONY: docker_push_release
docker_push_release:
.PHONY: docker_release_image
docker_release_images:
docker build -t moira/web2:${VERSION} .
docker push moira/web2:${VERSION}
10 changes: 9 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ After cloning repo make sure you have installed all dependencies by running `yar

All files will be prepared in **dist** folder.

### Developing
## Developing

`yarn start`

Expand All @@ -33,3 +33,11 @@ Starts [Storybook](https://storybook.js.org) on port 9001.
`yarn flow`

Starts [Flow](https://flow.org) server for checking types. You can also run `yarn flow.status` for status, `yarn flow.check` for errors report, `yarn flow.coverage.html` to export html report with cute UI.

## Contributing

Put issues [in main repo](https://github.com/moira-alert/moira/issues), please. Even if you think, that your issue only about web interface. In many cases that's no so. Thank you!

---

[More about Moira](https://github.com/moira-alert/moira/blob/master/README.md)
Loading

0 comments on commit a91f0e3

Please sign in to comment.