Skip to content

Commit 2901ecb

Browse files
author
Ruslan Molchanov
committed
Merge branch 'sprint' into 'master'
Release 2.2.0 Closes OP-108 and OP-58 See merge request open-platform/api!100
2 parents 8be6518 + e60c11d commit 2901ecb

76 files changed

Lines changed: 2152 additions & 2605 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.gitlab-ci.yml

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,7 @@ stages:
1212

1313
variables:
1414
DOCKER_DRIVER: overlay2
15-
IMAGE_NAME: gcr.io/zinc-computer-205115/apiopenfuture
16-
IMAGE_TAG: ${CI_COMMIT_REF_NAME}-${CI_PIPELINE_ID}
15+
IMAGE_NAME: openplatform/api
1716

1817

1918
###########################
@@ -84,14 +83,11 @@ build-jar:
8483
###########################
8584
# Packaging
8685
###########################
87-
.registry-auth-script: &registry_auth
88-
- docker login -u _json_key -p "${GOOGLE_JSON_TOKEN}" https://gcr.io
89-
90-
9186
package-docker:
9287
stage: package
93-
before_script: *registry_auth
9488
script:
89+
- if [[ ${CI_COMMIT_REF_NAME} == master ]]; then export IMAGE_TAG=latest; else export IMAGE_TAG=${CI_COMMIT_REF_NAME}; fi;
90+
- docker login -u ${DOCKER_LOGIN} -p ${DOCKER_PASS}
9591
- docker build -t ${IMAGE_NAME}:${IMAGE_TAG} -f docker/Dockerfile .
9692
- docker push ${IMAGE_NAME}:${IMAGE_TAG}
9793
only:
@@ -115,7 +111,6 @@ package-docker:
115111

116112

117113
.deploy-to-host-script: &deploy_to_host
118-
- ssh ${DEPLOY_USER}@${DEPLOY_HOST} "docker login -u _json_key -p '${GOOGLE_JSON_TOKEN}' https://gcr.io"
119114
- ssh ${DEPLOY_USER}@${DEPLOY_HOST} "docker pull ${IMAGE_NAME}:${IMAGE_TAG}"
120115
- |
121116
ssh ${DEPLOY_USER}@${DEPLOY_HOST} "
@@ -158,6 +153,7 @@ deploy-development:
158153
NETWORK_URL: $NETWORK_URL_DEV
159154
ETHEREUM_PRIVATE_KEY: $ETHEREUM_PRIVATE_KEY_DEV
160155
OPEN_TOKEN_ADDRESS: $OPEN_TOKEN_ADDRESS_DEV
156+
IMAGE_TAG: sprint
161157
before_script: *prepare_key
162158
script: *deploy_to_host
163159
only:
@@ -185,10 +181,11 @@ deploy-production:
185181
NETWORK_URL: $NETWORK_URL_PROD
186182
ETHEREUM_PRIVATE_KEY: $ETHEREUM_PRIVATE_KEY_PROD
187183
OPEN_TOKEN_ADDRESS: $OPEN_TOKEN_ADDRESS_PROD
184+
IMAGE_TAG: latest
188185
before_script: *prepare_key
189186
script: *deploy_to_host
190187
only:
191-
- master
188+
- tags
192189
environment:
193190
name: production
194191
url: https://api.openfuture.io
@@ -202,7 +199,7 @@ deploy-production:
202199
.update-certificates-script: &update_certificates
203200
- |
204201
ssh ${DEPLOY_USER}@${DEPLOY_HOST} "
205-
docker run --rm -t --name certbot \
202+
docker run --rm --name certbot \
206203
-v /etc/letsencrypt:/etc/letsencrypt \
207204
-v /var/www/certbot:/var/www/certbot \
208205
-v /var/log/letsencrypt:/var/log/letsencrypt \

CHANGELOG.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,19 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
66

77
## [Unreleased]
88

9+
## [2.2.0] - 2018-06-22
10+
### Added
11+
- Scaffold templates. Now you can fill in scaffold fields and add additional scaffold properties in one click using predefined templates
12+
- Scaffold templates samples
13+
- Transaction split. Now you can add several transaction recipients and set recipients shares after scaffold deployment
14+
- Transaction split: add an additional recipient
15+
- Transaction split: set additional recipient's share
16+
- Transaction split: edit additional recipient's share
17+
- Transaction split: delete an additional recipient
18+
19+
### Changed
20+
- Unit tests
21+
922
## [2.1.0] - 2018-06-18
1023
### Added
1124
- Public API Specification
@@ -61,5 +74,6 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
6174
- "Withdraw" button is removed
6275

6376
[Unreleased]: https://github.com/OpenFuturePlatform/open-api/compare/master...sprint
77+
[2.2.0]: https://github.com/OpenFuturePlatform/open-api/compare/v2.1.0...v2.2.0
6478
[2.1.0]: https://github.com/OpenFuturePlatform/open-api/compare/v2.0.0...v2.1.0
6579
[2.0.0]: https://github.com/OpenFuturePlatform/open-api/compare/8ea69084ef657f66976518827873c9c922970ce6...v2.0.0

build.gradle

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
plugins {
22
id 'jacoco'
33
id "idea"
4-
id "org.jetbrains.kotlin.jvm" version "1.2.41"
5-
id "org.jetbrains.kotlin.kapt" version "1.2.41"
6-
id "org.jetbrains.kotlin.plugin.spring" version "1.2.41"
7-
id "org.jetbrains.kotlin.plugin.jpa" version "1.2.41"
4+
id "org.jetbrains.kotlin.jvm" version "1.2.50"
5+
id "org.jetbrains.kotlin.kapt" version "1.2.50"
6+
id "org.jetbrains.kotlin.plugin.spring" version "1.2.50"
7+
id "org.jetbrains.kotlin.plugin.jpa" version "1.2.50"
88
id "org.springframework.boot" version "2.0.2.RELEASE"
99
}
1010

0 commit comments

Comments
 (0)