Add CircleCI integration
This commit is contained in:
parent
905e2e9a50
commit
9ea4bd4f18
1 changed files with 30 additions and 0 deletions
30
.circleci/config.yml
Normal file
30
.circleci/config.yml
Normal file
|
@ -0,0 +1,30 @@
|
||||||
|
version: 2
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
docker:
|
||||||
|
- image: circleci/node:latest
|
||||||
|
working_directory: ~/app
|
||||||
|
steps:
|
||||||
|
- run:
|
||||||
|
name: Update and install SSH & Git
|
||||||
|
command: apk update && apk upgrade && apk add --no-cache bash git openssh
|
||||||
|
- checkout
|
||||||
|
- run:
|
||||||
|
name: Install npm deployment app
|
||||||
|
command: npm install -g github-release-cli
|
||||||
|
- deploy:
|
||||||
|
name: Create a release
|
||||||
|
command: |
|
||||||
|
PACKAGE_VERSION=$(cat package.json \
|
||||||
|
| grep version \
|
||||||
|
| head -1 \
|
||||||
|
| awk -F: '{ print $2 }' \
|
||||||
|
| sed 's/[",]//g')
|
||||||
|
echo "Creating release '${PACKAGE_VERSION}.${CIRCLE_BUILD_NUM}'"
|
||||||
|
|
||||||
|
workflows:
|
||||||
|
version: 2
|
||||||
|
build_deploy:
|
||||||
|
jobs:
|
||||||
|
- build:
|
||||||
|
context: github-thething
|
Loading…
Reference in a new issue