Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 0 additions & 10 deletions .circleci/build_slug.sh

This file was deleted.

134 changes: 119 additions & 15 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,24 +1,128 @@
version: 2
version: 2.1
parameters:
node-version:
type: string
default: "22.18.0"
orbs:
node: circleci/node@5.0.0
slack: circleci/slack@4.5.3
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:12-stretch
- image: cimg/node:14.21.3
steps:
- checkout
- node/install:
node-version: << pipeline.parameters.node-version >>
- node/install-packages:
cache-path: ./node_modules
override-ci-command: npm install
# Audit check is disabled until the component is properly made up-to-date
# - run:
# name: Audit Dependencies
# command: npm audit --production --audit-level=high
- run:
name: Running Tests
command: npm test
build:
docker:
- image: cimg/node:14.21.3
user: root
steps:
- checkout
- restore_cache:
key: dependency-cache-{{ checksum "package.json" }}
- node/install:
node-version: << pipeline.parameters.node-version >>
- setup_remote_docker:
version: default
docker_layer_caching: true
# build and push Docker image
- run:
name: Installing Dependencies
command: npm install
- save_cache:
key: dependency-cache-{{ checksum "package.json" }}
paths:
- node_modules
name: Install component-build-helper lib
command: npm install -g @elastic.io/component-build-helper
- run:
name: Running Mocha 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"
context:
- componentspusher
filters:
branches:
ignore: /.*/
tags:
only: /^([0-9]+)\.([0-9]+)\.([0-9]+)(?:-([0-9A-Za-z-]+(?:\.[0-9A-Za-z-]+)*))?(?:\+[0-9A-Za-z-]+)?$/
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 1.4.3 (November 14, 2025)

* Force the component builds to be dockerized ad pushed to the Docker Hub

## 1.4.2 (November 26, 2021)

* Upgrade sailor version to 2.6.26
Expand Down
3 changes: 1 addition & 2 deletions component.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
{
"title": "PostgreSQL",
"version": "1.4.2",
"version": "1.4.3-dev.1",
"description": "Simple SQL query against a PostgreSQL",
"buildType": "docker",
"docsUrl":"https://github.com/elasticio/postgresql-component",
"credentials": {
"fields": {
Expand Down