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 dependency typescript to v4.9.5 #42

Open
wants to merge 24 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
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-hasura-projections-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
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -65,4 +65,5 @@ dist
jest_0
.queues
.queues.*
secrets
secrets
/tmp
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.

3 changes: 3 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@
"sourceMaps": true,
"trace": true,
"outputCapture": "std",
"env": {
"DEBUG": "example:*"
}
}
]
}
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM node:17.3.0-alpine3.13 as build
FROM node:18.12.1-alpine3.16 as build

WORKDIR /build

Expand All @@ -12,7 +12,7 @@ COPY tsconfig.json ./
RUN npm run build
RUN npm prune --production

FROM node:17.3.0-alpine3.13
FROM node:18.12.1-alpine3.16

WORKDIR /usr/src/app

Expand Down
44 changes: 4 additions & 40 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,50 +1,14 @@
SERVICE_NAME := example-hasura-denormalizer
SERVICE_NAME := example-hasura-projections-service
NOW := $(shell date +%m_%d_%Y_%H_%M)
LOCAL_DEV_CLUSTER ?= kind-local-dev-cluster
LOCAL_DEV_CLUSTER ?= rancher-desktop

onboard: install

install:
npm ci

dev:
npm run dev

onboard: deploy-to-local-cluster install

open:
code .

connect-to-local-dev-cluster:
kubectl ctx $(LOCAL_DEV_CLUSTER)
kubectl port-forward --namespace knative-eventing svc/broker-ingress 8080:80 &

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:5010 \
| 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
4 changes: 0 additions & 4 deletions OWNERS

This file was deleted.

6 changes: 0 additions & 6 deletions OWNERS_ALIASES

This file was deleted.

Loading