Skip to content

Commit 5a0ab7d

Browse files
Initial commit
0 parents  commit 5a0ab7d

21 files changed

Lines changed: 475 additions & 0 deletions

.chart/test/Chart.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
dependencies:
2+
- name: microservice
3+
version: "0.0.85"
4+
repository: https://charts.parcellab.dev
5+
apiVersion: v2
6+
name: repo-template-base
7+
description: This is a template app, do not forget to change its metadata (prod)
8+
version: 0.0.0

.chart/test/values.yaml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
microservice:
2+
name: repo-template-base
3+
env: test
4+
orgRepository: 212550490986.dkr.ecr.eu-central-1.amazonaws.com
5+
config:
6+
DEBUG: true
7+
livenessProbe:
8+
httpGet:
9+
path: /_health
10+
port: http
11+
readinessProbe:
12+
httpGet:
13+
path: /_ready
14+
port: http
15+
service:
16+
port: 5000
17+
image:
18+
tag: "c55be2a"
19+
resources:
20+
limits:
21+
cpu: 100m
22+
memory: 128Mi
23+
requests:
24+
cpu: 50m
25+
memory: 64Mi
26+
ingress:
27+
enabled: true

.editorconfig

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
root = true
2+
3+
[*]
4+
indent_style = tab
5+
indent_size = 4
6+
tab_width = 4
7+
end_of_line = lf
8+
charset = utf-8
9+
trim_trailing_whitespace = true
10+
insert_final_newline = true
11+
12+
[{*.gyp,*.md,*.json,*.tf,*.tpl,*.yml,*.yaml}]
13+
indent_style = space
14+
indent_size = 2
15+
16+
[{*.py,*.asm}]
17+
indent_style = space
18+
19+
[*.asm]
20+
indent_size = 8
21+
22+
[{*.md,*.tsv}]
23+
trim_trailing_whitespace = false
24+
25+
[{*.c,*.cc,*.h,*.hh,*.cpp,*.hpp,*.m,*.mm,*.mpp,*.js,*.java,*.go,*.rs,*.php,*.ng,*.jsx,*.ts,*.d,*.cs,*.swift}]
26+
curly_bracket_next_line = false
27+
spaces_around_operators = true
28+
spaces_around_brackets = outside

.github/dependabot.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: "github-actions"
4+
directory: "/"
5+
schedule:
6+
interval: "weekly"

.github/pull_request_template.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<!--- Provide a general summary of your changes -->
2+
<!--- Write the related JIRA issue here with the [PROJ-123] format if applicable -->
3+
<!--- If suggesting a new feature or change, please discuss it in the issue first -->
4+
5+
## Description
6+
7+
<!--- Why is this change required? What problem does it solve? -->
8+
<!--- Describe your changes in detail -->
9+
<!--- Include details of how you tested the change -->
10+
11+
## Checklist
12+
13+
<!--- Go over all the following points, and put an `x` in all the boxes that apply. -->
14+
15+
- [ ] My change requires a change to the documentation
16+
- [ ] I have updated the documentation accordingly
17+
- [ ] My change contains migrations and I have set the stage accordingly

.github/release-drafter.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name-template: "v$NEXT_PATCH_VERSION"
2+
tag-template: "v$NEXT_PATCH_VERSION"
3+
template: |
4+
$CHANGES
5+
categories:
6+
- title: "🚀 Features"
7+
labels:
8+
- enhancement
9+
- title: "🐛 Bug Fixes"
10+
labels:
11+
- bug
12+
- title: "🧹 Chores"
13+
labels:
14+
- chore
15+
change-template: "- $TITLE (#$NUMBER) @$AUTHOR"
16+
no-changes-template: "* No changes"
17+
autolabeler:
18+
- label: feature
19+
title:
20+
- "/^feat/"
21+
- label: bug
22+
title:
23+
- "/^fix/"
24+
- label: chore
25+
title:
26+
- "/^chore/"

.github/workflows/deployment.yaml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Deployment
2+
on:
3+
workflow_dispatch:
4+
inputs:
5+
author:
6+
description: The owner of the deployment change
7+
required: false
8+
default: parcellab-dev-bot
9+
env:
10+
description: The environment where to deploy
11+
required: false
12+
default: test
13+
description:
14+
description: The information about the deployment change
15+
required: false
16+
default: Manual deployment in github actions
17+
ref:
18+
description: The github ref to deploy
19+
required: false
20+
default: main
21+
jobs:
22+
set-repo-name:
23+
uses: ./.github/workflows/extract-repo-name.yaml
24+
25+
from-dispatch:
26+
needs: set-repo-name
27+
uses: parcelLab/ci/.github/workflows/deployment.yaml@v8.2.6
28+
with:
29+
appName: ${{ needs.set-repo-name.outputs.repo_name }}
30+
author: ${{ github.event.inputs.author }}
31+
chartInAppRepo: true
32+
description: ${{ github.event.inputs.description }}
33+
env: ${{ github.event.inputs.env }}
34+
namespace: infra
35+
ref: ${{ github.event.inputs.ref }}
36+
versionKey: microservice.image.tag
37+
secrets:
38+
repoAccessToken: ${{ secrets.REPO_ACCESS_TOKEN }}
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
name: Extract Repo Name
2+
on:
3+
workflow_call:
4+
outputs:
5+
repo_name:
6+
description: "The repository name"
7+
value: ${{ jobs.extract.outputs.repo_name }}
8+
jobs:
9+
extract:
10+
runs-on: ubuntu-latest
11+
outputs:
12+
repo_name: ${{ steps.extract.outputs.repo_name }}
13+
steps:
14+
- id: extract
15+
run: echo "repo_name=${GITHUB_REPOSITORY##*/}" >> $GITHUB_OUTPUT

.github/workflows/json.yaml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
name: JSON
2+
on:
3+
push:
4+
branches:
5+
- main
6+
paths:
7+
- "**.json"
8+
pull_request:
9+
paths:
10+
- "**.json"
11+
workflow_dispatch:
12+
jobs:
13+
lint:
14+
uses: parcelLab/ci/.github/workflows/json.yaml@v8.2.6

.github/workflows/kubernetes.yaml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Kubernetes
2+
on:
3+
deployment:
4+
jobs:
5+
set-repo-name:
6+
uses: ./.github/workflows/extract-repo-name.yaml
7+
8+
deploy:
9+
needs: set-repo-name
10+
uses: parcelLab/ci/.github/workflows/kubernetes.yaml@v8.2.6
11+
with:
12+
deploymentRepoPath: .chart/${{ github.event.deployment.payload.env }}
13+
deploymentRepoValuesPath: .chart/${{ github.event.deployment.payload.env }}/values.yaml
14+
deploymentRepoURL: parcellab/${{ needs.set-repo-name.outputs.repo_name }}
15+
sentryOrg: parcellab
16+
sentryProject: ${{ needs.set-repo-name.outputs.repo_name }}
17+
sentryUrl: https://sentry.parcellab.com/
18+
slackChannelStaging: D05FBHC5SQL
19+
slackChannelTest: D05FBHC5SQL
20+
registryHostname: 212550490986.dkr.ecr.eu-central-1.amazonaws.com
21+
enableContainerScan: false
22+
repository_kind: "ecr"
23+
chartInAppRepo: true
24+
secrets:
25+
npmGithubReadToken: ${{ secrets.PACKAGES_READ_TOKEN }}
26+
repoAccessToken: ${{ secrets.REPO_ACCESS_TOKEN }}
27+
sentryAuthToken: ${{ secrets.SENTRY_AUTH_TOKEN }}
28+
slackBotToken: ${{ secrets.SLACK_BOT_TOKEN }}
29+
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
30+
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
31+
AWS_ACCOUNT_ID: ${{ secrets.AWS_ACCOUNT_ID }}

0 commit comments

Comments
 (0)