-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* update * update * update * merge origin update-object * merge origin update-object * merge origin update-object * merge origin update-object * merge origin update-object * merge origin update-object * merge origin update-object * merge origin update-object * update * update * update * update * Update component.json Co-authored-by: Oleg Oshurkov <[email protected]>
- Loading branch information
1 parent
d559561
commit f12fd33
Showing
10 changed files
with
1,549 additions
and
339 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,125 @@ | ||
version: 2 | ||
version: 2.1 | ||
parameters: | ||
node-version: | ||
type: string | ||
default: "16.13.2" | ||
orbs: | ||
node: circleci/[email protected] | ||
slack: circleci/[email protected] | ||
commands: | ||
notify_on_failure: | ||
steps: | ||
- slack/notify: | ||
event: fail | ||
custom: | | ||
{ | ||
"blocks": [ | ||
{ | ||
"type": "section", | ||
"fields": [ | ||
{ | ||
"type": "mrkdwn", | ||
"text": ":red_circle: *$CIRCLE_PROJECT_REPONAME*:*$CIRCLE_TAG* build failed" | ||
} | ||
] | ||
}, | ||
{ | ||
"type": "actions", | ||
"elements": [ | ||
{ | ||
"type": "button", | ||
"text": { | ||
"type": "plain_text", | ||
"text": "View Job" | ||
}, | ||
"url": "${CIRCLE_BUILD_URL}" | ||
} | ||
] | ||
} | ||
] | ||
} | ||
notify_on_pass: | ||
steps: | ||
- slack/notify: | ||
event: pass | ||
custom: | | ||
{ | ||
"blocks": [ | ||
{ | ||
"type": "section", | ||
"fields": [ | ||
{ | ||
"type": "mrkdwn", | ||
"text": ":tada: *$CIRCLE_PROJECT_REPONAME*:*$CIRCLE_TAG* was successfully built and published" | ||
} | ||
] | ||
}, | ||
{ | ||
"type": "actions", | ||
"elements": [ | ||
{ | ||
"type": "button", | ||
"text": { | ||
"type": "plain_text", | ||
"text": "View Job" | ||
}, | ||
"url": "${CIRCLE_BUILD_URL}" | ||
} | ||
] | ||
} | ||
] | ||
} | ||
jobs: | ||
test: | ||
docker: | ||
- image: circleci/node:14-stretch | ||
steps: | ||
- checkout | ||
- restore_cache: | ||
key: dependency-cache-{{ checksum "package.json" }} | ||
- node/install: | ||
node-version: << pipeline.parameters.node-version >> | ||
# - run: | ||
# name: Audit Dependencies | ||
# command: npm audit --audit-level=high | ||
- node/install-packages: | ||
cache-path: ./node_modules | ||
override-ci-command: npm install | ||
- run: | ||
name: Installing Dependencies | ||
command: npm install | ||
- save_cache: | ||
key: dependency-cache-{{ checksum "package.json" }} | ||
paths: | ||
- node_modules | ||
name: Running Mocha Tests | ||
command: npm test | ||
build: | ||
docker: | ||
- image: circleci/node:14-stretch | ||
user: root | ||
steps: | ||
- checkout | ||
- node/install: | ||
node-version: << pipeline.parameters.node-version >> | ||
- setup_remote_docker: | ||
version: 19.03.13 | ||
docker_layer_caching: true | ||
# build and push Docker image | ||
- run: | ||
name: Install component-build-helper lib | ||
command: npm install -g @elastic.io/component-build-helper | ||
- run: | ||
name: Running Mocha Unit&Integration Tests | ||
command: npm test && npm run integration-test | ||
name: Build and publish docker image | ||
command: build_component_docker | ||
- notify_on_failure | ||
- notify_on_pass | ||
workflows: | ||
version: 2 | ||
build_and_test: | ||
test: | ||
jobs: | ||
- test: | ||
name: "Running tests" | ||
filters: | ||
tags: | ||
ignore: /.*/ | ||
publish_release: | ||
jobs: | ||
- test | ||
- build: | ||
name: "Build and publish docker image" | ||
filters: | ||
branches: | ||
ignore: /.*/ | ||
tags: | ||
only: /^([0-9]+)\.([0-9]+)\.([0-9]+)(?:-([0-9A-Za-z-]+(?:\.[0-9A-Za-z-]+)*))?(?:\+[0-9A-Za-z-]+)?$/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
ACCESS_KEY_ID=DKIAJJ5GKdfgdfgFEn | ||
ACCESS_KEY_SECRET=gergji37fhkds4f34cf34c3fds4 | ||
REGION=ca-central-1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
exports.ATTACHMENT_MAX_SIZE = process.env.ATTACHMENT_MAX_SIZE ? parseInt(process.env.ATTACHMENT_MAX_SIZE, 10) : 10000000; | ||
exports.REQUEST_MAX_BODY_LENGTH = process.env.REQUEST_MAX_BODY_LENGTH ? parseInt(process.env.REQUEST_MAX_BODY_LENGTH, 10) : 104857600; // 100MB |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.