Skip to content

Commit 9624f94

Browse files
committed
Update readme
1 parent 012ff1d commit 9624f94

File tree

1 file changed

+26
-1
lines changed

1 file changed

+26
-1
lines changed

README.md

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,38 @@ This image is based on ubuntu becuase it is currently difficult to use alpine. S
99

1010
## Command line
1111

12+
`sentry-cli` is the entrypoint so you only need to specify parameters to it for `docker run`.
13+
14+
Here is an example that just runs `sentry-cli` with the `--help` option.
15+
1216
```
1317
$ docker run -it --rm sentry-cli --help
1418
```
1519

1620
## Gitlab
1721

22+
The entrypoint needs to be blank in order for the script in gitlab to work. See [this issue](https://gitlab.com/gitlab-org/gitlab-runner/issues/2692#note_43591182) for more information.
23+
24+
Here is an example that uploads soure-maps in gitlab to an on-premise sentry server:
25+
1826
```
19-
TODO!
27+
sentry:
28+
stage: publish
29+
image:
30+
name: dividab/sentry-cli:1.21.0
31+
entrypoint: [""]
32+
script:
33+
- export SENTRY_URL=https://sentry.mydomain.com
34+
- export SENTRY_AUTH_TOKEN=XXXXXXXX
35+
- export SENTRY_ORG=myorg
36+
- export SENTRY_PROJECT=myproj
37+
- export SENTRY_DISABLE_UPDATE_CHECK=true
38+
- sentry-cli releases new $CI_PIPELINE_ID
39+
- sentry-cli releases files $CI_PIPELINE_ID upload-sourcemaps ./dist
2040
```
2141

42+
# How to make a new version
43+
44+
Change `ENV VERSION="1.21.0"` in the `Dockerfile` to the new version of sentry-cli. Then make a tag and it will automatically be published to docker hub.
45+
46+

0 commit comments

Comments
 (0)