-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitlab-ci.yml
67 lines (55 loc) · 1.9 KB
/
.gitlab-ci.yml
1
2
3
4
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
image:
name: git.keithley.com:5050/trebuchet/teaspoon/teaspoon-build:latest
entrypoint: [""]
include:
# https://gitlab.com/gitlab-org/gitlab/-/tree/master/lib/gitlab/ci/templates/Workflows/MergeRequest-Pipelines.gitlab-ci.yml
- template: Workflows/MergeRequest-Pipelines.gitlab-ci.yml
variables:
NODE_EXTRA_CA_CERTS: "/etc/ssl/certs/ca-certificates.crt"
stages:
- package
- deploy
package:
stage: package
script:
- cd WebHelpDocs
- npm pack
artifacts:
name: npm-package
paths:
- ./WebHelpDocs/*.tgz
deploy:
stage: deploy
rules:
- if: $CI_COMMIT_TAG
needs:
- package
script:
- cd WebHelpDocs
- npm config set @trebuchet:registry "https://${CI_SERVER_HOST}/api/v4/projects/${CI_PROJECT_ID}/packages/npm/"
- npm config set -- "//${CI_SERVER_HOST}/api/v4/projects/${CI_PROJECT_ID}/packages/npm/:_authToken" "${CI_JOB_TOKEN}"
- npm publish *.tgz
release:
stage: deploy
image: git.keithley.com:5050/gitlab-support/gitlab-release-cli:latest
rules:
- if: $CI_COMMIT_TAG
needs:
- package
script:
- echo "release"
release:
tag_name: $CI_COMMIT_TAG
name: "keithley_instrument_libraries $CI_COMMIT_TAG release"
description: |
## :warning: Disclaimer :warning:
This is an _alpha_ stage project and should **NOT** be used for production use-cases.
This project is **NOT** ready for customer usage. If there is a need to use this with a customer, please contact someone from the Teaspoon team to discuss options.
## Features Requests / Bugs
If you find issues or have a feature request, please enter a [new issue on GitLab](https://git.keithley.com/trebuchet/teaspoon/web-help-documents/-/issues/new).
This will allow us to filter the issues into JIRA to avoid duplicates and keep things focused.
## Added Features
- __TBD__
## Known Issues
- __TBD__
ref: "$CI_COMMIT_TAG"