Skip to content

Commit

Permalink
initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Scaffolder committed Mar 15, 2023
0 parents commit 090a2f4
Show file tree
Hide file tree
Showing 31 changed files with 923 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# EditorConfig is awesome: https://EditorConfig.org

# top-most EditorConfig file
root = true

# Unix-style newlines with a newline ending every file
[*]
end_of_line = lf
insert_final_newline = true
charset = utf-8
indent_style = space

[*.html]
indent_style = space
indent_size = 2

[*.{ts,json,js,tsx,jsx}]
indent_style = space
indent_size = 2

[*.md]
indent_size = 2
indent_style = space

[Dockerfile]
indent_style = space
indent_size = 2

[*.{yml,yaml}]
indent_size = 2
indent_style = space
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = false
line_wrap_mode = soft wrap
3 changes: 3 additions & 0 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.github/* @devxp-tech/sre-team
liquibase/* @devxp-tech/dba-team
* @devxp-tech/group:default/guests
14 changes: 14 additions & 0 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# TITLE

## JIRA ISSUE

What this PR does

- [ ] New features
- [ ] Bugfix
- [ ] Hotfix
- [ ] Others

>Short description about this changes below:
___
10 changes: 10 additions & 0 deletions .github/workflows/chatgpt.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
name: chatgpt

on:
pull_request:
types: [opened, synchronize]

jobs:
chatgpt:
uses: devxp-tech/.github/.github/workflows/chatgpt.yaml@main
secrets: inherit
38 changes: 38 additions & 0 deletions .github/workflows/feature.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: feature

on:
push:
branches:
- 'feature/**'

jobs:
env:
uses: devxp-tech/.github/.github/workflows/env.yaml@main

test:
uses: devxp-tech/.github/.github/workflows/test.yaml@main
needs:
- env

quality-gate:
uses: devxp-tech/.github/.github/workflows/sonarqube.yaml@main
secrets: inherit
needs:
- env

code-scan:
uses: devxp-tech/.github/.github/workflows/synk-golang.yaml@main
secrets: inherit
needs:
- env

notify:
uses: devxp-tech/.github/.github/workflows/notify.yaml@main
if: always()
secrets: inherit
needs:
- env
- test
- quality-gate
- code-scan
# - action-pull-request
69 changes: 69 additions & 0 deletions .github/workflows/first-release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
name: first-release

on:
workflow_dispatch:


jobs:
env:
uses: devxp-tech/.github/.github/workflows/env.yaml@main

test:
uses: devxp-tech/.github/.github/workflows/test.yaml@main

quality-gate:
uses: devxp-tech/.github/.github/workflows/sonarqube.yaml@main
secrets: inherit

docs:
uses: devxp-tech/.github/.github/workflows/techdocs.yaml@main
secrets: inherit
with:
repository:
needs:
- env

build-and-push:
uses: devxp-tech/.github/.github/workflows/build-and-push.yaml@main
with:
tag:
needs:
- env
- test
- quality-gate

security-gateway:
uses: devxp-tech/.github/.github/workflows/trivy.yaml@main
needs:
- build-and-push

deploy:
uses: devxp-tech/.github/.github/workflows/deploy.yaml@main
secrets: inherit
with:
tag:
repository:
url: https://.devxp-tech.io
environment: development
needs:
- env
- security-gateway

promote:
uses: devxp-tech/.github/.github/workflows/promote.yaml@main
secrets: inherit
with:
tag:
repository:
url: https://.devxp-tech.io
environment: production
needs:
- env
- deploy

notify:
uses: devxp-tech/.github/.github/workflows/notify.yaml@main
if: always()
secrets: inherit
needs:
- promote
53 changes: 53 additions & 0 deletions .github/workflows/hotfix.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
name: hotfix

on:
push:
branches:
- 'hotfix/**'

jobs:
env:
uses: devxp-tech/.github/.github/workflows/env.yaml@main

test:
uses: devxp-tech/.github/.github/workflows/test.yaml@main

quality-gate:
uses: devxp-tech/.github/.github/workflows/sonarqube.yaml@main
secrets: inherit

code-scan:
uses: devxp-tech/.github/.github/workflows/synk-golang.yaml@main
secrets: inherit

build-and-push:
uses: devxp-tech/.github/.github/workflows/build-and-push.yaml@main
with:
tag:
needs:
- env
- test
- quality-gate
- code-scan

security-gateway:
uses: devxp-tech/.github/.github/workflows/trivy.yaml@main
needs:
- build-and-push

deploy:
uses: devxp-tech/.github/.github/workflows/deploy.yaml@main
secrets: inherit
with:
tag:
repository:
needs:
- env
- security-gateway

notify:
uses: devxp-tech/.github/.github/workflows/notify.yaml@main
if: always()
secrets: inherit
needs:
- deploy
34 changes: 34 additions & 0 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: main

on:
push:
branches:
- main
paths-ignore:
- 'README.md'
- 'mkdocs.yml'
- 'docs/**'
- 'catalog-info.yaml'


jobs:
env:
uses: devxp-tech/.github/.github/workflows/env.yaml@main

promote:
uses: devxp-tech/.github/.github/workflows/promote.yaml@main
secrets: inherit
with:
tag:
repository:
url: https://.devxp-tech.io
environment: production
needs:
- env

notify:
uses: devxp-tech/.github/.github/workflows/notify.yaml@main
if: always()
secrets: inherit
needs:
- promote
41 changes: 41 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: release

on:
push:
branches:
- 'release/**'

jobs:
env:
uses: devxp-tech/.github/.github/workflows/env.yaml@main

build-and-push:
uses: devxp-tech/.github/.github/workflows/build-and-push.yaml@main
with:
tag:
needs:
- env

security-gateway:
uses: devxp-tech/.github/.github/workflows/trivy.yaml@main
needs:
- build-and-push

deploy:
uses: devxp-tech/.github/.github/workflows/deploy.yaml@main
secrets: inherit
with:
tag:
repository:
url: https://.devxp-tech.io
environment: development
needs:
- env
- security-gateway

notify:
uses: devxp-tech/.github/.github/workflows/notify.yaml@main
if: always()
secrets: inherit
needs:
- deploy
27 changes: 27 additions & 0 deletions .github/workflows/rollback.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: rollback

on:
workflow_dispatch:
inputs:
tag:
description: "Set Docker Image Tag to RollBack"
required: true
jobs:
env:
uses: devxp-tech/.github/.github/workflows/env.yaml@main

rollback:
uses: devxp-tech/.github/.github/workflows/rollback.yaml@main
secrets: inherit
with:
tag:
repository:
needs:
- env

notify:
uses: devxp-tech/.github/.github/workflows/notify.yaml@main
if: always()
secrets: inherit
needs:
- rollback
20 changes: 20 additions & 0 deletions .github/workflows/techdocs.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: techdocs

on:
push:
# branches: [main]
paths:
- "docs/**"
- "mkdocs.yml"

jobs:
env:
uses: devxp-tech/.github/.github/workflows/env.yaml@main

docs:
uses: devxp-tech/.github/.github/workflows/techdocs.yaml@main
secrets: inherit
with:
repository:
needs:
- env
16 changes: 16 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Binaries for programs and plugins
*.exe
*.exe~
*.dll
*.so
*.dylib
.DS_Store

# Test binary, built with `go test -c`
*.test

# Output of the go coverage tool, specifically when used with LiteIDE
*.out

# Dependency directories (remove the comment below to include it)
# vendor/
Loading

0 comments on commit 090a2f4

Please sign in to comment.