Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(deps): update typescript-eslint monorepo to v5.59.7 #25

Open
wants to merge 17 commits into
base: master
Choose a base branch
from
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
2 changes: 1 addition & 1 deletion .dockerignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
draft.toml
charts/
helm/
NOTICE
LICENSE
README.md
Expand Down
12 changes: 12 additions & 0 deletions .github/workflows/pr-close.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
name: pr-close
on:
pull_request:
types: [ closed ]

jobs:

preview-cleanup:
uses: CloudNativeEntrepreneur/actions/.github/workflows/gitops-preview-cleanup.yaml@main
secrets: inherit
with:
environment_repository: CloudNativeEntrepreneur/example-preview-envs
50 changes: 50 additions & 0 deletions .github/workflows/pr.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: pr

on:

pull_request:
branches:
- main

jobs:

helm-quality:
uses: CloudNativeEntrepreneur/actions/.github/workflows/helm-quality.yaml@main
with:
helm_path: helm

preview-helm-quality:
uses: CloudNativeEntrepreneur/actions/.github/workflows/helm-quality.yaml@main
with:
helm_path: preview/helm

promote-helm-quality:
uses: CloudNativeEntrepreneur/actions/.github/workflows/helm-quality.yaml@main
with:
helm_path: promote/helm

node-quality:
uses: CloudNativeEntrepreneur/actions/.github/workflows/node-quality.yaml@main

preview:
needs:
- helm-quality
- preview-helm-quality
- promote-helm-quality
- node-quality
uses: CloudNativeEntrepreneur/actions/.github/workflows/gitops-preview.yaml@main
secrets: inherit
with:
container: true
environment_repository: CloudNativeEntrepreneur/example-preview-envs
project: example-preview-envs
comment: |
Your preview environment has been published! :rocket:

This service doesn't have a public URL.

You can verify the PR is ready with `kubectl`:

```bash
kubectl get ksvc -n ${{ github.event.repository.name }}-pr-${{ github.event.pull_request.number }}-preview
```
30 changes: 30 additions & 0 deletions .github/workflows/publish-and-promote.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: promote
on:
push:
tags:
- v*.*.*

jobs:

publish-container:
uses: CloudNativeEntrepreneur/actions/.github/workflows/publish-container.yaml@main
secrets: inherit

promote-local:
uses: CloudNativeEntrepreneur/actions/.github/workflows/gitops-promote-helm.yaml@main
secrets: inherit
with:
environment_repository: CloudNativeEntrepreneur/example-local-env
project: example-local-env
pull_request: false
values: |
# Set from promote job of CloudNativeEntrepreneur/example-dlq-service
local: true

promote-prod:
uses: CloudNativeEntrepreneur/actions/.github/workflows/gitops-promote-helm.yaml@main
secrets: inherit
with:
environment_repository: CloudNativeEntrepreneur/example-prod-env
project: example-prod-env
pull_request: false
34 changes: 0 additions & 34 deletions .github/workflows/quality.yml

This file was deleted.

36 changes: 36 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: main
on:
push:
branches:
- main
jobs:

helm-quality:
uses: CloudNativeEntrepreneur/actions/.github/workflows/helm-quality.yaml@main
with:
helm_path: helm

preview-helm-quality:
uses: CloudNativeEntrepreneur/actions/.github/workflows/helm-quality.yaml@main
with:
helm_path: preview/helm

promote-helm-quality:
uses: CloudNativeEntrepreneur/actions/.github/workflows/helm-quality.yaml@main
with:
helm_path: promote/helm

node-quality:
uses: CloudNativeEntrepreneur/actions/.github/workflows/node-quality.yaml@main

release:
needs:
- helm-quality
- preview-helm-quality
- promote-helm-quality
- node-quality
uses: CloudNativeEntrepreneur/actions/.github/workflows/github-release.yaml@main
secrets: inherit
with:
helm: true
container: true
47 changes: 0 additions & 47 deletions .lighthouse/jenkins-x/pullrequest.yaml

This file was deleted.

59 changes: 0 additions & 59 deletions .lighthouse/jenkins-x/release.yaml

This file was deleted.

17 changes: 0 additions & 17 deletions .lighthouse/jenkins-x/triggers.yaml

This file was deleted.

26 changes: 20 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,13 +1,27 @@
FROM node:17.3.0-alpine3.13
FROM node:18.12.1-alpine3.16 as build

WORKDIR /usr/src/app
WORKDIR /build

COPY package.json package-lock.json ./
RUN npm ci --production
RUN npm ci

COPY src/ src/
COPY __tests__/ __tests__/
COPY tsconfig.json ./

RUN npm run build
RUN npm prune --production

FROM node:18.12.1-alpine3.16

WORKDIR /usr/src/app

COPY src src
COPY --from=build /build/node_modules/ node_modules/
COPY --from=build /build/dist/ dist/
COPY --from=build /build/package.json /build/package-lock.json dist/

ENV PORT=3000
ENV HANDLER_BASE_PATH=dist
ENV PORT=3999
EXPOSE ${PORT}

CMD node ./src/bin/start.mjs
CMD node ./dist/bin/start.js
36 changes: 2 additions & 34 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,41 +1,9 @@
LOCAL_DEV_CLUSTER ?= kind-local-dev-cluster
LOCAL_DEV_CLUSTER ?= rancher-desktop
NOW := $(shell date +%m_%d_%Y_%H_%M)
SERVICE_NAME := example-dead-letter
SERVICE_NAME := example-dlq-service

onboard: install

build-new-local-image:
kubectl ctx $(LOCAL_DEV_CLUSTER)
docker build -t $(SERVICE_NAME) .
docker tag $(SERVICE_NAME):latest dev.local/$(SERVICE_NAME):$(NOW)

load-local-image-to-kind:
kubectl ctx $(LOCAL_DEV_CLUSTER)
kind --name local-dev-cluster load docker-image dev.local/$(SERVICE_NAME):$(NOW)

deploy-to-local-cluster:
kubectl ctx $(LOCAL_DEV_CLUSTER)
helm template ./charts/$(SERVICE_NAME)/ \
-f ./charts/$(SERVICE_NAME)/values.yaml \
--set image.repository=dev.local/$(SERVICE_NAME),image.tag=$(NOW) \
| kubectl apply -f -

delete-local-deployment:
kubectl ctx $(LOCAL_DEV_CLUSTER)
helm template ./charts/$(SERVICE_NAME)/ \
-f ./charts/$(SERVICE_NAME)/values.yaml \
--set image.repository=dev.local/$(SERVICE_NAME),image.tag=$(NOW) \
| kubectl delete -f -

refresh-kind-image: build-new-local-image load-local-image-to-kind deploy-to-local-cluster
hard-refresh-kind-image: delete-local-deployment build-new-local-image load-local-image-to-kind deploy-to-local-cluster

localizer:
localizer expose default/$(SERVICE_NAME) --map 80:3000

stop-localizer:
localizer expose default/$(SERVICE_NAME) --stop

install:
npm ci

Expand Down
4 changes: 0 additions & 4 deletions OWNERS

This file was deleted.

6 changes: 0 additions & 6 deletions OWNERS_ALIASES

This file was deleted.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# example-dead-letter
# example-dlq-service

logs dead messages
Loading