Newer
Older
# `dockerode-tag`
> A `semantic-release` plugin to pull, tag and push open container images using [dockerode][dockerrode]
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
## Getting Started
```sh
npm config set always-auth true
npm config set @semantic-release:registry https://gitlab.gpu.arm.com/api/v4/packages/npm/
npm config set -- '//gitlab.gpu.arm.com/api/v4/packages/npm/:_authToken' '${GITLAB_TOKEN}'
export GITLAB_TOKEN="<personal-access-token>"
npm install --save-dev @semantic-release/dockerode-tag
```
Add the following to `.releaserc.yaml`:
```yaml
plugins:
- path: "@semantic-release"
images:
- "${CI_REGISTRY_IMAGE}/node:${CI_COMMIT_SHA}"
```
## Configuration
### `images`
By default the plugin will tag each provided image with the next release version as a tag.
These are equivalent configurations:
```yaml
plugins:
- path: "@semantic-release"
images:
- "${CI_REGISTRY_IMAGE}/node:${CI_COMMIT_SHA}"
```
```yaml
plugins:
- path: "@semantic-release"
images:
- image: "${CI_REGISTRY_IMAGE}/node:${CI_COMMIT_SHA}"
tag: "${nextRelease.version}"
```
[dockerode]: https://github.com/apocas/dockerode#readme