Skip to content

Commit

Permalink
Chore/artifacthub config (#116)
Browse files Browse the repository at this point in the history
* chore: add artifact-repo.yml

* chore: add pipeline

* ci: update trigger

* ci: trigger ci

* chore: audit fix

* ci: split command and dir

* chore: add more metadata

* chore: add badge

* chore: bump lib

* chore: bump more stuff
  • Loading branch information
jkoenig134 authored Oct 17, 2023
1 parent 94720c4 commit 8f13711
Show file tree
Hide file tree
Showing 9 changed files with 456 additions and 195 deletions.
2 changes: 1 addition & 1 deletion .dev/Dockerfile.debug
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM node:18.18.0
FROM node:18.18.2
WORKDIR /usr/app
RUN npm install nodemon -g

Expand Down
31 changes: 31 additions & 0 deletions .github/workflows/artifact-repo-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Artifact Repo Publish

on:
push:
branches: [main]
paths: [helmChart/artifacthub-repo.yml]

jobs:
upload-artifact-repo-config:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install oras
run: |
curl -L https://github.com/oras-project/oras/releases/download/v1.1.0/oras_1.1.0_linux_amd64.tar.gz -o oras.tar.gz
tar -xzf oras.tar.gz oras
sudo mv oras /usr/local/bin
rm oras_1.1.0_linux_amd64.tar.gz
- name: Docker Login
uses: docker/[email protected]
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: oras push
working-directory: ./helmChart
run: |
oras push \
ghcr.io/nmshd/connector-helm-chart:artifacthub.io \
--config /dev/null:application/vnd.cncf.artifacthub.config.v1+yaml \
artifacthub-repo.yml:application/vnd.cncf.artifacthub.repository-metadata.layer.v1.yaml
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
# Changelog

## 3.5.5

- security audit
- helm chart
- now available on artifacthub
- more metadata
- upgrade the runtime version to 2.8.1
- - upgrade nodejs to 18.18.2

## 3.5.4

- the connector logs json when running in kubernetes
Expand Down
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM node:18.18.0 as builder
FROM node:18.18.2 as builder
ARG COMMIT_HASH
ARG BUILD_NUMBER
ARG PACKAGE_VERSION
Expand All @@ -13,7 +13,7 @@ COPY src src
RUN npm run build
RUN .ci/writeBuildInformation.sh

FROM node:18.18.0-alpine
FROM node:18.18.2-alpine
ENV NODE_CONFIG_ENV=prod
RUN apk add --no-cache tini
RUN apk add libcap && setcap CAP_NET_BIND_SERVICE=+eip /usr/local/bin/node && apk del libcap
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ This monorepo consolidates the following packages / applications:
| Component | Version(s) |
| -- | -- |
| [The Connector docker images](./) | [see ghcr.io](https://github.com/nmshd/cns-connector/pkgs/container/connector) |
| [The Connector helm charts](./) | [see ghcr.io](https://github.com/nmshd/cns-connector/pkgs/container/connector-helm-chart) |
| [The Connector helm charts](./) | [see ghcr.io](https://github.com/nmshd/cns-connector/pkgs/container/connector-helm-chart) and [![Artifact Hub](https://img.shields.io/endpoint?url=https://artifacthub.io/badge/repository/enmeshed-connector)](https://artifacthub.io/packages/search?repo=enmeshed-connector) |
| [TypeScript Connector SDK](packages/sdk/) | [![npm version](https://badge.fury.io/js/@nmshd%2fconnector-sdk.svg)](https://www.npmjs.com/package/@nmshd/connector-sdk) |

## Documentation
Expand Down
7 changes: 5 additions & 2 deletions helmChart/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
apiVersion: v2
name: connector-helm-chart
description: A Helm chart for the Enmeshed Connector
icon: https://raw.githubusercontent.com/nmshd/nmshd.github.io/main/assets/images/Logo.svg

type: application

icon: https://raw.githubusercontent.com/nmshd/nmshd.github.io/main/assets/images/Logo.svg
home: https://enmeshed.eu
sources:
- "https://github.com/nmshd/cns-connector/tree/main/helmChart"

# version and appVersion are set by the publishHelmChart.sh script
version: 0.0.0
appVersion: 0.0.0
4 changes: 4 additions & 0 deletions helmChart/artifacthub-repo.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
repositoryID: bf5642c2-7bc8-489d-801b-ebe650e96064
owners:
- name: jkoenig134
email: [email protected]
Loading

0 comments on commit 8f13711

Please sign in to comment.