refactor(gitlab-ci): remove node-lib template

BREAKING CHANGE:

Remove the `node-lib` GitLab CI template. Downstream consumers should
use the `npm-library` template.
parent ecd8b3ad
Pipeline #42064960 failed with stages
in 1 minute and 13 seconds
......@@ -13,7 +13,7 @@ Configuration package containing files that can be used to configure different a
- [Usage](#usage)
- [GitLab CI](#gitlab-ci)
- [Npm Libraries](#npm-libraries)
- [Docker](#docker)
- [Docker Images](#docker-images)
- [Node Support Policy](#node-support-policy)
- [Contributing](#contributing)
......@@ -21,7 +21,8 @@ Configuration package containing files that can be used to configure different a
## Features
* [x] A [GitLab CI template for Node library projects](https://gitlab.com/hyper-expanse/open-source/configuration-packages/gitlab-config/raw/master/src/gitlab-ci-node-lib.template.yml) which may be used in other project's using GitLab CI's [`include`](https://docs.gitlab.com/ee/ci/yaml/#include) property.
* [x] A GitLab CI template for testing, delivering, and deploying, npm packages.
* [x] A GitLab CI template for building, testing, delivering, and deploying, Docker images to GitLab's image registry.
## Usage
......@@ -43,9 +44,9 @@ Assumptions:
> **Note:** The `include` URL references the `master` branch. Please consider using a specific commit hash or tag if you are not comfortable depending on the latest template. _Ideally_ you should use a versioned template so that your build is repeatable. At this time, however, I know of no way to automatically keep the URL reference up-to-date.
#### Docker
#### Docker Images
> For building, testing, and then deploying, a Docker image on GitLab.
> For building, testing, deliverying, and then deploying, a Docker image on GitLab.
To extend this [Docker template](https://gitlab.com/hyper-expanse/open-source/configuration-packages/gitlab-config/tree/master/src/gitlab-ci-docker.template.yml) just include it in your project's `.gitlab-ci.yml` file using `include`:
......
stages:
- test
- release
cache:
paths:
- node_modules/
- ${HOME}/.cache/yarn
.common: &common
except:
- tags
script:
- source ${HOME}/.bashrc
- yarn install --frozen-lockfile
- yarn test
- ($(yarn bin)/codecov || echo "Codecov did not collect coverage reports")
stage: test
.node_6: &node_6
image: node:6
.node_8: &node_8
image: node:8
.node_10: &node_10
image: node:10
.node_current: &node_current
image: node:latest
allow_failure: true
node_6:
<<: [*common, *node_6]
node_8:
<<: [*common, *node_8]
node_10:
<<: [*common, *node_10]
node_current:
<<: [*common, *node_current]
deliver:
<<: [*node_10]
before_script:
- yarn install --frozen-lockfile
only:
- master
script:
- $(yarn bin)/semantic-release-gitlab --preset @hutson/config
stage: release
deploy:
<<: [*node_10]
before_script:
- yarn install --frozen-lockfile
only:
- tags
script:
- $(yarn bin)/npm-publish-git-tag --access public
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment