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 #8

Open
wants to merge 26 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
783efb5
feat: helm dir + workflows
patrickleet Oct 24, 2022
0da86e2
fix: changelog
patrickleet Oct 24, 2022
18ca350
fix: changelog
patrickleet Oct 24, 2022
b5d84df
fix: image.repository
patrickleet Oct 24, 2022
f57a27a
fix: protocol
patrickleet Oct 25, 2022
6634e1e
fix: updates
patrickleet Oct 25, 2022
7d1b756
fix: cleanup
patrickleet Oct 25, 2022
1190e31
feat: previews (#40)
patrickleet Oct 31, 2022
c4333b4
fix(helm): rm unused files
patrickleet Oct 31, 2022
ccbd035
fix: pr comment
patrickleet Oct 31, 2022
e74c6de
fix: shorten app name to less than 53 char
patrickleet Oct 31, 2022
b26bf83
fix: chart version
patrickleet Oct 31, 2022
a00d4d5
fix: chart version
patrickleet Oct 31, 2022
baa69f3
fix: chart version revert
patrickleet Oct 31, 2022
5f48b57
feat: local
patrickleet Oct 31, 2022
be4b694
feat: updates for local gitops dev
patrickleet Oct 31, 2022
3a4517e
fix: npm version updates
patrickleet Nov 11, 2022
41d5f0f
feat: shared workflows + helm promote + renovate (#43)
patrickleet Nov 21, 2022
262b0c5
feat(promote-helm): pass through helm values
patrickleet Nov 21, 2022
5d7d363
fix: pass through values string syntax
patrickleet Nov 21, 2022
18ae652
fix: comment
patrickleet Nov 21, 2022
7cd21fe
fix: values defaults
patrickleet Nov 21, 2022
8b58393
chore: auto-promote
patrickleet Nov 28, 2022
b6b2104
fix: preview image.tag
patrickleet Nov 28, 2022
9aa8879
fix: preview sync wave
patrickleet Nov 28, 2022
8605363
chore(deps): update typescript-eslint monorepo to v5.59.7
renovate[bot] May 28, 2023
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
52 changes: 52 additions & 0 deletions .github/workflows/pr.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
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:

It may take a few minutes to spin up.

You can view the Preview contents with `kubectl`:

```bash
kubectl get postgresqls -n ${{ github.event.repository.name }}-pr-${{ github.event.pull_request.number }}-preview
kubectl get databases.databases.schemahero.io -n ${{ github.event.repository.name }}-pr-${{ github.event.pull_request.number }}-preview
kubectl get tables.schemas.schemahero.io -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-policy-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.

24 changes: 19 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,13 +1,27 @@
FROM node:17.2.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 HANDLER_BASE_PATH=dist
ENV PORT=5020
EXPOSE ${PORT}

CMD node ./src/bin/start.mjs
CMD node ./dist/bin/start.js
34 changes: 1 addition & 33 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,39 +2,7 @@ LOCAL_DEV_CLUSTER ?= kind-local-dev-cluster
NOW := $(shell date +%m_%d_%Y_%H_%M)
SERVICE_NAME := example-policy-service

onboard: install deploy-to-local-cluster

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),knative.eventing.local=true,knative.eventing.subscriber=http://host.docker.internal:5020 \
| 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:5020

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

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.

Loading