ddsl 0.0.4 → 0.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.ddsl.yml +49 -1
- data/.gitlab-ci.yml +8 -1
- data/.travis.yml +1 -1
- data/CHANGELOG.md +31 -0
- data/README.md +45 -45
- data/docker/Dockerfile +1 -2
- data/docker/github_changelog_generator/Dockerfile +6 -0
- data/docker/jsonschema2md/Dockerfile +4 -0
- data/docs/ddsl.schema.json +3 -3
- data/docs/ddsl.schema.md +12 -12
- data/docs/run.schema.json +4 -4
- data/docs/run.schema.md +8 -5
- data/lib/ddsl/version.rb +1 -1
- data/schemas/ddsl.schema.json +3 -3
- data/schemas/run.schema.json +1 -1
- data/scripts/publish.sh +15 -0
- data/scripts/version.sh +1 -0
- metadata +8 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 876daff17fe025456c007e7a6b49aeaefe308694
|
4
|
+
data.tar.gz: c7724c6cfd1088081d87febf8420283feb0a6c3d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c69636d47110c9d3cb5fc38ca0e5670f7012a8f58bf8b03777ee1670e844ffbaf81e8fd77802c579a95c1874a365211303c110eb295675a775b5878e0690f208
|
7
|
+
data.tar.gz: f274b265cd533d9e5474b829cb1be93b9c1d103249351c4d0e148241a08250c9794564685d7e524db0a2f33fc24f1d3ce93a4aeada63dcfed07d9e245a550229
|
data/.ddsl.yml
CHANGED
@@ -16,6 +16,7 @@ builds:
|
|
16
16
|
push: true
|
17
17
|
cache_from:
|
18
18
|
- bilby91/ddsl:latest
|
19
|
+
|
19
20
|
- name: master-branch
|
20
21
|
type: docker
|
21
22
|
context: .
|
@@ -26,29 +27,76 @@ builds:
|
|
26
27
|
push: true
|
27
28
|
cache_from:
|
28
29
|
- bilby91/ddsl:latest
|
30
|
+
|
29
31
|
- name: dev
|
30
32
|
type: docker-compose
|
31
33
|
file: docker/docker-compose.yml
|
32
34
|
|
35
|
+
- name: docs-builder
|
36
|
+
type: docker
|
37
|
+
file: docker/jsonschema2md/Dockerfile
|
38
|
+
context: docker/jsonschema2md
|
39
|
+
push: true
|
40
|
+
tags:
|
41
|
+
- bilby91/jsonschema2md:latest
|
42
|
+
|
43
|
+
- name: changelog-builder
|
44
|
+
type: docker
|
45
|
+
file: docker/github_changelog_generator/Dockerfile
|
46
|
+
context: docker/github_changelog_generator
|
47
|
+
push: true
|
48
|
+
tags:
|
49
|
+
- bilby91/github_changelog_generator:latest
|
50
|
+
|
33
51
|
runs:
|
34
52
|
- name: bash
|
35
53
|
type: docker-compose
|
36
54
|
file: docker/docker-compose.yml
|
37
55
|
service: ddsl
|
38
56
|
cmd: /bin/bash
|
57
|
+
|
39
58
|
- name: test-ci
|
40
59
|
type: docker
|
41
60
|
image: bilby91/ddsl:$CI_SHA1
|
42
61
|
cmd: bundle exec rspec spec
|
62
|
+
|
43
63
|
- name: lint-ci
|
44
64
|
type: docker
|
45
65
|
image: bilby91/ddsl:$CI_SHA1
|
46
66
|
cmd: rubocop .
|
67
|
+
|
47
68
|
- name: test
|
48
69
|
type: docker
|
49
70
|
image: bilby91/ddsl:latest
|
50
71
|
cmd: bundle exec rspec spec
|
72
|
+
|
51
73
|
- name: lint
|
52
74
|
type: docker
|
53
75
|
image: bilby91/ddsl:latest
|
54
|
-
cmd: rubocop .
|
76
|
+
cmd: rubocop .
|
77
|
+
|
78
|
+
- name: build-docs
|
79
|
+
type: docker
|
80
|
+
image: bilby91/jsonschema2md
|
81
|
+
rm: true
|
82
|
+
cmd: jsonschema2md --input /schemas --out /docs --draft 06 -n
|
83
|
+
volumes:
|
84
|
+
- $PWD/schemas:/schemas
|
85
|
+
- $PWD/docs:/docs
|
86
|
+
|
87
|
+
- name: build-changelog
|
88
|
+
type: docker
|
89
|
+
image: bilby91/github_changelog_generator:latest
|
90
|
+
rm: true
|
91
|
+
cmd: github_changelog_generator -u bilby91 -p ddsl
|
92
|
+
envs:
|
93
|
+
CHANGELOG_GITHUB_TOKEN: $CHANGELOG_GITHUB_TOKEN
|
94
|
+
volumes:
|
95
|
+
- $PWD:/app
|
96
|
+
|
97
|
+
- name: publish
|
98
|
+
type: docker
|
99
|
+
image: bilby91/ddsl:$CI_SHA1
|
100
|
+
cmd: scripts/publish.sh
|
101
|
+
envs:
|
102
|
+
RUBYGEMS_TOKEN: $RUBYGEMS_TOKEN
|
data/.gitlab-ci.yml
CHANGED
@@ -9,6 +9,7 @@ services:
|
|
9
9
|
stages:
|
10
10
|
- build
|
11
11
|
- checks
|
12
|
+
- publish
|
12
13
|
before_script:
|
13
14
|
- export CI_SHA1=gitlab-$CI_COMMIT_SHA
|
14
15
|
build:
|
@@ -30,4 +31,10 @@ test:
|
|
30
31
|
lint:
|
31
32
|
stage: checks
|
32
33
|
script:
|
33
|
-
- ddsl run lint-ci
|
34
|
+
- ddsl run lint-ci
|
35
|
+
publish:
|
36
|
+
stage: publish
|
37
|
+
script:
|
38
|
+
- ddsl run publish
|
39
|
+
only:
|
40
|
+
- /v[0-9]+(\.[0-9]+)*/
|
data/.travis.yml
CHANGED
data/CHANGELOG.md
ADDED
@@ -0,0 +1,31 @@
|
|
1
|
+
# Change Log
|
2
|
+
|
3
|
+
## [v0.0.4](https://github.com/bilby91/ddsl/tree/v0.0.4) (2018-12-08)
|
4
|
+
[Full Changelog](https://github.com/bilby91/ddsl/compare/v0.0.3...v0.0.4)
|
5
|
+
|
6
|
+
**Closed issues:**
|
7
|
+
|
8
|
+
- Add docs for schema [\#4](https://github.com/bilby91/ddsl/issues/4)
|
9
|
+
|
10
|
+
**Merged pull requests:**
|
11
|
+
|
12
|
+
- Fix volumes schema definition for run command [\#9](https://github.com/bilby91/ddsl/pull/9) ([bilby91](https://github.com/bilby91))
|
13
|
+
- Add docs [\#7](https://github.com/bilby91/ddsl/pull/7) ([bilby91](https://github.com/bilby91))
|
14
|
+
- Use registries [\#6](https://github.com/bilby91/ddsl/pull/6) ([bilby91](https://github.com/bilby91))
|
15
|
+
- Add docker registries [\#3](https://github.com/bilby91/ddsl/pull/3) ([bilby91](https://github.com/bilby91))
|
16
|
+
|
17
|
+
## [v0.0.3](https://github.com/bilby91/ddsl/tree/v0.0.3) (2018-12-04)
|
18
|
+
[Full Changelog](https://github.com/bilby91/ddsl/compare/v0.0.2...v0.0.3)
|
19
|
+
|
20
|
+
**Merged pull requests:**
|
21
|
+
|
22
|
+
- Add pull option for build [\#2](https://github.com/bilby91/ddsl/pull/2) ([bilby91](https://github.com/bilby91))
|
23
|
+
- Add CI inception [\#1](https://github.com/bilby91/ddsl/pull/1) ([bilby91](https://github.com/bilby91))
|
24
|
+
|
25
|
+
## [v0.0.2](https://github.com/bilby91/ddsl/tree/v0.0.2) (2018-11-30)
|
26
|
+
[Full Changelog](https://github.com/bilby91/ddsl/compare/v0.0.1...v0.0.2)
|
27
|
+
|
28
|
+
## [v0.0.1](https://github.com/bilby91/ddsl/tree/v0.0.1) (2018-11-23)
|
29
|
+
|
30
|
+
|
31
|
+
\* *This Change Log was automatically generated by [github_changelog_generator](https://github.com/skywinder/Github-Changelog-Generator)*
|
data/README.md
CHANGED
@@ -1,9 +1,29 @@
|
|
1
1
|
# ddsl
|
2
2
|
|
3
|
-
Docker Declarative Specific Language
|
3
|
+
> Docker Declarative Specific Language
|
4
4
|
|
5
5
|
`ddsl` allow developers to express in a declarative way how application are built, run and tested. Building, running and testing applications should be semlessly, independently on what environment your are. `ddsl` makes the latter easy by providing one cli to use in CI and development environments.
|
6
6
|
|
7
|
+
## Dependencies
|
8
|
+
|
9
|
+
- ruby
|
10
|
+
- docker
|
11
|
+
- docker-compose
|
12
|
+
|
13
|
+
## Installation
|
14
|
+
|
15
|
+
You can install `ddsl` with either of this mechansims
|
16
|
+
|
17
|
+
### Gem
|
18
|
+
|
19
|
+
Like any ruby gem
|
20
|
+
|
21
|
+
`gem install ddsl`
|
22
|
+
|
23
|
+
### Docker
|
24
|
+
|
25
|
+
When running on modern CI providers like [Circle CI](https://circleci.com) or [GitLab](https://gitlab.com) you can install it using the docker image `bilby91/ddsl:latest`. You can find more information on how to use it by looking at ddsl's [Circle CI implementation](https://github.com/bilby91/ddsl/blob/master/.circleci/config.yml) or [GitLab implementation](https://github.com/bilby91/ddsl/blob/master/.gitlab-ci.yml)
|
26
|
+
|
7
27
|
## Usage
|
8
28
|
|
9
29
|
`ddsl` it's a command line tool that works with a companion `.ddsl.yml` file. In the `.ddsl.yml` file you can declare the diferent builds and runs that your application will need. A very simple example would look like this:
|
@@ -21,77 +41,57 @@ builds:
|
|
21
41
|
push: true
|
22
42
|
cache_from:
|
23
43
|
- bilby91/ddsl:latest
|
24
|
-
- name: master-branch
|
25
|
-
type: docker
|
26
|
-
context: .
|
27
|
-
file: docker/Dockerfile
|
28
|
-
tags:
|
29
|
-
- bilby91/ddsl:$CI_SHA1
|
30
|
-
- bilby91/ddsl:latest
|
31
|
-
push: true
|
32
|
-
cache_from:
|
33
|
-
- bilby91/ddsl:latest
|
34
|
-
- name: dev
|
35
|
-
type: docker-compose
|
36
|
-
file: docker/docker-compose.yml
|
37
44
|
|
38
45
|
runs:
|
39
|
-
- name: bash
|
40
|
-
type: docker-compose
|
41
|
-
file: docker/docker-compose.yml
|
42
|
-
service: ddsl
|
43
|
-
cmd: /bin/bash
|
44
|
-
- name: test-ci
|
45
|
-
type: docker
|
46
|
-
image: bilby91/ddsl:$CI_SHA1
|
47
|
-
cmd: bundle exec rspec spec
|
48
46
|
- name: test
|
49
|
-
type: docker
|
50
|
-
image: bilby91/ddsl:latest
|
51
|
-
cmd: bundle exec rspec spec
|
52
|
-
- name: lint-ci
|
53
47
|
type: docker
|
54
48
|
image: bilby91/ddsl:$CI_SHA1
|
55
|
-
cmd:
|
49
|
+
cmd: bundle exec rspec spec
|
50
|
+
|
56
51
|
- name: lint
|
57
52
|
type: docker
|
58
|
-
image: bilby91/ddsl
|
53
|
+
image: bilby91/ddsl:$CI_SHA1
|
59
54
|
cmd: rubocop .
|
60
55
|
```
|
61
56
|
|
62
|
-
|
57
|
+
### Build
|
63
58
|
|
64
|
-
|
59
|
+
In order to run our feature-branch build we invoke
|
65
60
|
|
66
|
-
|
61
|
+
`ddsl build feature-branch`
|
67
62
|
|
68
|
-
|
63
|
+
### Run
|
69
64
|
|
70
|
-
|
65
|
+
Now that we have our image built we can run things on it
|
71
66
|
|
72
67
|
`ddsl run test lint`
|
73
68
|
|
69
|
+
### Environment Variables
|
70
|
+
|
71
|
+
- [ ] TODO
|
72
|
+
|
74
73
|
## Documentation
|
75
74
|
|
76
|
-
|
75
|
+
For the moment, looking at how `ddsl` uses itself is the best documentation. You can find it here [`.ddsl.yml`](https://github.com/bilby91/ddsl/blob/master/.ddsl.yml).
|
76
|
+
|
77
|
+
You can also look at how `ddsl` integrates with different CI providers
|
78
|
+
|
79
|
+
- [Circle CI](https://github.com/bilby91/ddsl/blob/master/.circleci/config.yml)
|
80
|
+
- [GitLab](https://github.com/bilby91/ddsl/blob/master/.gitlab-ci.yml)
|
81
|
+
- [Travis](https://github.com/bilby91/ddsl/blob/master/.travis.yml)
|
77
82
|
|
78
|
-
|
83
|
+
### Schema
|
79
84
|
|
80
|
-
|
85
|
+
The `.ddsl.yml` schema [documentation](https://github.com/bilby91/ddsl/blob/master/docs/ddsl.schema.md) can found [here](https://github.com/bilby91/ddsl/blob/master/docs/ddsl.schema.md)
|
86
|
+
|
87
|
+
## Continuous Integration
|
81
88
|
|
82
89
|
| Provider | Status |
|
83
90
|
|-----------|------------------------------------------------------------------------------------------------------------------------------------------|
|
84
91
|
| GitLab CI | [](https://gitlab.com/bilby91/ddsl) |
|
85
92
|
| Circle CI | [](https://circleci.com/gh/bilby91/ddsl/tree/master) |
|
86
93
|
| Travis CI | [](https://travis-ci.com/bilby91/ddsl) |
|
87
|
-
|
88
|
-
## Dependencies
|
89
|
-
|
90
|
-
- ruby
|
91
|
-
- docker
|
92
|
-
- docker-compose
|
93
|
-
|
94
94
|
## Contact
|
95
95
|
|
96
96
|
- Martín Fernández <fmartin91@gmail.com>
|
97
|
-
- Iván Etchart <ivan.etchart@me.com>
|
97
|
+
- Iván Etchart <ivan.etchart@me.com>
|
data/docker/Dockerfile
CHANGED
data/docs/ddsl.schema.json
CHANGED
@@ -19,7 +19,7 @@
|
|
19
19
|
"registries": {
|
20
20
|
"type": "array",
|
21
21
|
"items": {
|
22
|
-
"$ref": "https://raw.githubusercontent.com/bilby91/ddsl/
|
22
|
+
"$ref": "https://raw.githubusercontent.com/bilby91/ddsl/master/docs/registry.schema.json"
|
23
23
|
},
|
24
24
|
"default": [],
|
25
25
|
"description": "List of registries to authenticate when performing either a build or run operation"
|
@@ -27,14 +27,14 @@
|
|
27
27
|
"builds": {
|
28
28
|
"type": "array",
|
29
29
|
"items": {
|
30
|
-
"$ref": "https://raw.githubusercontent.com/bilby91/ddsl/
|
30
|
+
"$ref": "https://raw.githubusercontent.com/bilby91/ddsl/master/docs/build.schema.json"
|
31
31
|
},
|
32
32
|
"description": "List of build tasks to run"
|
33
33
|
},
|
34
34
|
"runs": {
|
35
35
|
"type": "array",
|
36
36
|
"items": {
|
37
|
-
"$ref": "https://raw.githubusercontent.com/bilby91/ddsl/
|
37
|
+
"$ref": "https://raw.githubusercontent.com/bilby91/ddsl/master/docs/run.schema.json"
|
38
38
|
},
|
39
39
|
"description": "List of run tasks to run"
|
40
40
|
}
|
data/docs/ddsl.schema.md
CHANGED
@@ -15,9 +15,9 @@ Schema for the DDSL file format.
|
|
15
15
|
|
16
16
|
| Property | Type | Required | Default | Defined by |
|
17
17
|
|----------|------|----------|---------|------------|
|
18
|
-
| [builds](#builds) |
|
19
|
-
| [registries](#registries) |
|
20
|
-
| [runs](#runs) |
|
18
|
+
| [builds](#builds) | Build | Optional | | DDSL (this schema) |
|
19
|
+
| [registries](#registries) | Registry | Optional | `[]` | DDSL (this schema) |
|
20
|
+
| [runs](#runs) | Run | Optional | | DDSL (this schema) |
|
21
21
|
| [version](#version) | `enum` | **Required** | | DDSL (this schema) |
|
22
22
|
|
23
23
|
## builds
|
@@ -27,16 +27,16 @@ List of build tasks to run
|
|
27
27
|
`builds`
|
28
28
|
|
29
29
|
* is optional
|
30
|
-
* type:
|
30
|
+
* type: Build
|
31
31
|
* defined in this schema
|
32
32
|
|
33
33
|
### builds Type
|
34
34
|
|
35
35
|
|
36
|
-
Array type:
|
36
|
+
Array type: Build
|
37
37
|
|
38
38
|
All items must be of the type:
|
39
|
-
* []() – `https://raw.githubusercontent.com/bilby91/ddsl/
|
39
|
+
* [Build](build.schema.md) – `https://raw.githubusercontent.com/bilby91/ddsl/master/docs/build.schema.json`
|
40
40
|
|
41
41
|
|
42
42
|
|
@@ -52,7 +52,7 @@ List of registries to authenticate when performing either a build or run operati
|
|
52
52
|
`registries`
|
53
53
|
|
54
54
|
* is optional
|
55
|
-
* type:
|
55
|
+
* type: Registry
|
56
56
|
|
57
57
|
* default: `[]`
|
58
58
|
* defined in this schema
|
@@ -60,10 +60,10 @@ List of registries to authenticate when performing either a build or run operati
|
|
60
60
|
### registries Type
|
61
61
|
|
62
62
|
|
63
|
-
Array type:
|
63
|
+
Array type: Registry
|
64
64
|
|
65
65
|
All items must be of the type:
|
66
|
-
* []() – `https://raw.githubusercontent.com/bilby91/ddsl/
|
66
|
+
* [Registry](registry.schema.md) – `https://raw.githubusercontent.com/bilby91/ddsl/master/docs/registry.schema.json`
|
67
67
|
|
68
68
|
|
69
69
|
|
@@ -79,16 +79,16 @@ List of run tasks to run
|
|
79
79
|
`runs`
|
80
80
|
|
81
81
|
* is optional
|
82
|
-
* type:
|
82
|
+
* type: Run
|
83
83
|
* defined in this schema
|
84
84
|
|
85
85
|
### runs Type
|
86
86
|
|
87
87
|
|
88
|
-
Array type:
|
88
|
+
Array type: Run
|
89
89
|
|
90
90
|
All items must be of the type:
|
91
|
-
* []() – `https://raw.githubusercontent.com/bilby91/ddsl/
|
91
|
+
* [Run](run.schema.md) – `https://raw.githubusercontent.com/bilby91/ddsl/master/docs/run.schema.json`
|
92
92
|
|
93
93
|
|
94
94
|
|
data/docs/run.schema.json
CHANGED
@@ -64,8 +64,8 @@
|
|
64
64
|
"description": "Set environment variables"
|
65
65
|
},
|
66
66
|
"volumes": {
|
67
|
-
"type": "
|
68
|
-
"
|
67
|
+
"type": "array",
|
68
|
+
"items": {
|
69
69
|
"type": "string"
|
70
70
|
},
|
71
71
|
"description": "Bind mount volumes"
|
@@ -130,8 +130,8 @@
|
|
130
130
|
"description": "Set environment variables"
|
131
131
|
},
|
132
132
|
"volumes": {
|
133
|
-
"type": "
|
134
|
-
"
|
133
|
+
"type": "array",
|
134
|
+
"items": {
|
135
135
|
"type": "string"
|
136
136
|
},
|
137
137
|
"description": "Bind mount volumes"
|
data/docs/run.schema.md
CHANGED
@@ -54,7 +54,7 @@ Unique name to identify the run task.
|
|
54
54
|
| [service_ports](#service_ports) | `string` | `https://raw.githubusercontent.com/bilby91/ddsl/master/docs/run.schema.json#/definitions/run_docker_compose_options` |
|
55
55
|
| [type](#type) | `enum` | `https://raw.githubusercontent.com/bilby91/ddsl/master/docs/run.schema.json#/definitions/run_docker_compose_options` |
|
56
56
|
| [user](#user) | `string` | `https://raw.githubusercontent.com/bilby91/ddsl/master/docs/run.schema.json#/definitions/run_docker_compose_options` |
|
57
|
-
| [volumes](#volumes) | `
|
57
|
+
| [volumes](#volumes) | `string[]` | `https://raw.githubusercontent.com/bilby91/ddsl/master/docs/run.schema.json#/definitions/run_docker_compose_options` |
|
58
58
|
| [workdir](#workdir) | `string` | `https://raw.githubusercontent.com/bilby91/ddsl/master/docs/run.schema.json#/definitions/run_docker_compose_options` |
|
59
59
|
|
60
60
|
## cmd
|
@@ -291,17 +291,20 @@ Bind mount volumes
|
|
291
291
|
`volumes`
|
292
292
|
|
293
293
|
* is optional
|
294
|
-
* type: `
|
294
|
+
* type: `string[]`
|
295
295
|
* defined in this schema
|
296
296
|
|
297
297
|
### volumes Type
|
298
298
|
|
299
299
|
|
300
|
-
`
|
300
|
+
Array type: `string[]`
|
301
|
+
|
302
|
+
All items must be of the type:
|
303
|
+
`string`
|
304
|
+
|
305
|
+
|
301
306
|
|
302
307
|
|
303
|
-
| Property | Type | Required |
|
304
|
-
|----------|------|----------|
|
305
308
|
|
306
309
|
|
307
310
|
|
data/lib/ddsl/version.rb
CHANGED
data/schemas/ddsl.schema.json
CHANGED
@@ -19,7 +19,7 @@
|
|
19
19
|
"registries": {
|
20
20
|
"type": "array",
|
21
21
|
"items": {
|
22
|
-
"$ref": "https://raw.githubusercontent.com/bilby91/ddsl/
|
22
|
+
"$ref": "https://raw.githubusercontent.com/bilby91/ddsl/master/docs/registry.schema.json"
|
23
23
|
},
|
24
24
|
"default": [
|
25
25
|
|
@@ -29,14 +29,14 @@
|
|
29
29
|
"builds": {
|
30
30
|
"type": "array",
|
31
31
|
"items": {
|
32
|
-
"$ref": "https://raw.githubusercontent.com/bilby91/ddsl/
|
32
|
+
"$ref": "https://raw.githubusercontent.com/bilby91/ddsl/master/docs/build.schema.json"
|
33
33
|
},
|
34
34
|
"description": "List of build tasks to run"
|
35
35
|
},
|
36
36
|
"runs": {
|
37
37
|
"type": "array",
|
38
38
|
"items": {
|
39
|
-
"$ref": "https://raw.githubusercontent.com/bilby91/ddsl/
|
39
|
+
"$ref": "https://raw.githubusercontent.com/bilby91/ddsl/master/docs/run.schema.json"
|
40
40
|
},
|
41
41
|
"description": "List of run tasks to run"
|
42
42
|
}
|
data/schemas/run.schema.json
CHANGED
data/scripts/publish.sh
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
COMPILED_GEM_PATH=ddsl-$(scripts/version.sh).gem
|
2
|
+
|
3
|
+
if [ ! -f $COMPILED_GEM_PATH ]; then
|
4
|
+
echo "Compiled gem not found at $COMPILED_GEM_PATH"
|
5
|
+
exit -1
|
6
|
+
fi
|
7
|
+
|
8
|
+
# Copy RUBYGEMS_TOKEN to the credentials file
|
9
|
+
echo -e "---\n:rubygems_api_key: $RUBYGEMS_TOKEN" > ~/.gem/credentials
|
10
|
+
|
11
|
+
# Fix permissions
|
12
|
+
chmod 0600 ~/.gem/credentials
|
13
|
+
|
14
|
+
# Push current gem version
|
15
|
+
gem push $COMPILED_GEM_PATH
|
data/scripts/version.sh
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
cat lib/ddsl/version.rb | grep VERSION | awk '{ print $NF }' | sed -e "s/^'//" -e "s/'$//"
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ddsl
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Martin Fernandez
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2019-01-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: clamp
|
@@ -123,6 +123,7 @@ files:
|
|
123
123
|
- ".rspec"
|
124
124
|
- ".rubocop.yml"
|
125
125
|
- ".travis.yml"
|
126
|
+
- CHANGELOG.md
|
126
127
|
- Gemfile
|
127
128
|
- Gemfile.lock
|
128
129
|
- README.md
|
@@ -132,6 +133,8 @@ files:
|
|
132
133
|
- docker/Dockerfile
|
133
134
|
- docker/Dockerfile.dev
|
134
135
|
- docker/docker-compose.yml
|
136
|
+
- docker/github_changelog_generator/Dockerfile
|
137
|
+
- docker/jsonschema2md/Dockerfile
|
135
138
|
- docs/build.schema.json
|
136
139
|
- docs/build.schema.md
|
137
140
|
- docs/ddsl.schema.json
|
@@ -163,6 +166,8 @@ files:
|
|
163
166
|
- schemas/ddsl.schema.json
|
164
167
|
- schemas/registry.schema.json
|
165
168
|
- schemas/run.schema.json
|
169
|
+
- scripts/publish.sh
|
170
|
+
- scripts/version.sh
|
166
171
|
homepage: https://github.com/bilby91/ddsl
|
167
172
|
licenses:
|
168
173
|
- MIT
|
@@ -183,7 +188,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
183
188
|
version: '0'
|
184
189
|
requirements: []
|
185
190
|
rubyforge_project:
|
186
|
-
rubygems_version: 2.
|
191
|
+
rubygems_version: 2.6.14.3
|
187
192
|
signing_key:
|
188
193
|
specification_version: 4
|
189
194
|
summary: Docker Declarative Specific Language
|