-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #71 from 4urcloud/dev
Dev
- Loading branch information
Showing
13 changed files
with
605 additions
and
159 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -30,8 +30,43 @@ jobs: | |
- name: Run tests | ||
run: npm run test | ||
|
||
- name: Git Version | ||
id: versioning | ||
uses: codacy/[email protected] | ||
with: | ||
release-branch: main | ||
dev-branch: dev | ||
log-paths: Kexa/ | ||
minor-identifier: 'feat:' | ||
major-identifier: 'break:' | ||
|
||
- name: Set up version in file | ||
run: echo "${{ steps.versioning.outputs.version }}" > VERSION | ||
|
||
- name: Run extract Addon | ||
run: npm run update | ||
|
||
- name: Get changed files | ||
id: changed-files | ||
uses: tj-actions/changed-files@v39 | ||
|
||
- name: List all changed files | ||
run: | | ||
echo "## ${{ steps.versioning.outputs.version }}" >> CHANGELOG.md | ||
echo "" >> CHANGELOG.md | ||
echo "### Files added: ${{steps.changed-files.outputs.added_files_count}}" >> CHANGELOG.md | ||
echo "" >> CHANGELOG.md | ||
for file in ${{ steps.changed-files.outputs.added_files }}; do | ||
echo "$file was added" >> CHANGELOG.md | ||
echo "" >> CHANGELOG.md | ||
done | ||
echo "### Files changed: ${{steps.changed-files.outputs.all_changed_and_modified_files_count}}" >> CHANGELOG.md | ||
echo "" >> CHANGELOG.md | ||
for file in ${{ steps.changed-files.outputs.all_changed_files }}; do | ||
echo "$file was changed" >> CHANGELOG.md | ||
echo "" >> CHANGELOG.md | ||
done | ||
echo "" >> CHANGELOG.md | ||
- name: commit changes | ||
uses: EndBug/add-and-commit@v4 | ||
|
@@ -44,16 +79,6 @@ jobs: | |
env: | ||
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} | ||
|
||
- name: Git Version | ||
id: versionning | ||
uses: codacy/[email protected] | ||
with: | ||
release-branch: main | ||
dev-branch: dev | ||
log-paths: Kexa/ | ||
minor-identifier: 'feat:' | ||
major-identifier: 'break:' | ||
|
||
- name: Login to Docker Registry | ||
uses: docker/login-action@v2 | ||
with: | ||
|
@@ -67,10 +92,10 @@ jobs: | |
context: ./ | ||
push: true | ||
tags: | | ||
${{ secrets.DOCKER_REGISTRY_NAME}}/innovtech/kexa:${{ steps.versionning.outputs.version }} | ||
${{ secrets.DOCKER_REGISTRY_NAME}}/innovtech/kexa:${{ steps.versioning.outputs.version }} | ||
${{ secrets.DOCKER_REGISTRY_NAME}}/innovtech/kexa:latest | ||
- name: Release | ||
uses: ncipollo/release-action@v1 | ||
with: | ||
tag: "${{ steps.versionning.outputs.version }}" | ||
tag: "${{ steps.versioning.outputs.version }}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# CHANGELOG | ||
|
||
## 1.8.0-SNAPSHOT.51.f9fa354 | ||
|
||
### Files added: 2 | ||
|
||
CHANGELOG.md was added | ||
|
||
VERSION was added | ||
|
||
### Files changed: 5 | ||
|
||
CHANGELOG.md was changed | ||
|
||
VERSION was changed | ||
|
||
.github/workflows/ci.yml was changed | ||
|
||
Kexa/services/updateCapability.service.ts was changed | ||
|
||
package.json was changed | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,84 @@ | ||
- version: 2.0.0 | ||
date: 10-25-2023 | ||
alert: | ||
fatal: | ||
enabled: false | ||
type: | ||
- log | ||
to: | ||
- [email protected] | ||
error: | ||
enabled: false | ||
type: | ||
- log | ||
to: | ||
- [email protected] | ||
warning: | ||
enabled: false | ||
type: | ||
- log | ||
to: | ||
- [email protected] | ||
info: | ||
enabled: false | ||
type: | ||
- log | ||
to: | ||
- [email protected] | ||
global: | ||
enabled: true | ||
type: | ||
- log | ||
to: | ||
- [email protected] | ||
conditions: | ||
- level: 0 | ||
min: 1 | ||
- level: 1 | ||
min: 1 | ||
- level: 2 | ||
min: 1 | ||
- level: 3 | ||
min: 1 | ||
rules: | ||
- name: "http request date in body" | ||
description : "date check" | ||
applied: true | ||
level: 0 | ||
cloudProvider: http | ||
objectName : request | ||
conditions: | ||
- operator: NAND | ||
criteria : | ||
- property : body.date | ||
condition : EQUAL | ||
value : null | ||
- name: "http request certificate" | ||
description : "certificate check" | ||
applied: true | ||
level: 0 | ||
cloudProvider: http | ||
objectName : request | ||
conditions: | ||
- property : certificate.issuer.CN | ||
condition : EQUAL | ||
value : "Kubernetes Ingress Controller Fake Certificate" | ||
- property : certificate.valid_to | ||
condition : DATE_INF | ||
value : 0 0 0 0 0 0 | ||
date: "MMM DD HH:mm:ss YYYY GMT" | ||
- name: "http request header" | ||
description : "header check" | ||
applied: true | ||
level: 0 | ||
cloudProvider: http | ||
objectName : request | ||
conditions: | ||
- property : headers.content-type | ||
condition : INCLUDE | ||
value : "application/json" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,97 @@ | ||
- version: 1.0.0 | ||
date: 10-26-2023 | ||
alert: | ||
fatal: | ||
enabled: false | ||
type: | ||
- log | ||
to: | ||
- [email protected] | ||
error: | ||
enabled: false | ||
type: | ||
- log | ||
to: | ||
- [email protected] | ||
warning: | ||
enabled: false | ||
type: | ||
- log | ||
to: | ||
- [email protected] | ||
info: | ||
enabled: false | ||
type: | ||
- log | ||
to: | ||
- [email protected] | ||
global: | ||
enabled: true | ||
type: | ||
- log | ||
to: | ||
- [email protected] | ||
conditions: | ||
- level: 0 | ||
min: 1 | ||
- level: 1 | ||
min: 1 | ||
- level: 2 | ||
min: 1 | ||
- level: 3 | ||
min: 1 | ||
rules: | ||
- name: "Git repo check" | ||
description: "this rules is to check if my git repo is private" | ||
applied: true | ||
level: 1 | ||
cloudProvider: github | ||
objectName: repositories | ||
conditions: | ||
- operator: NAND | ||
criteria: | ||
- property: private | ||
condition: EQUAL | ||
value: false | ||
- property: full_name | ||
condition: EQUAL | ||
#change the name with your repo name | ||
value: 4urcloud/Kexa_website | ||
- name: "Git_branch_protect" | ||
description: "this rules is to check if my git branch is protected" | ||
applied: true | ||
level: 1 | ||
cloudProvider: github | ||
objectName: branches | ||
conditions: | ||
- operator: OR | ||
criteria: | ||
- property: repo | ||
condition: DIFFERENT | ||
#change the name with your repo name | ||
value: Kexa_website | ||
- property : name | ||
condition : DIFFERENT | ||
value : main | ||
- property : protected | ||
condition : EQUAL | ||
value : true | ||
- name: alert-if-namespace-not-exist-api-4urcloud | ||
description : "this rules is to check if namespace exist and notifiable if not" | ||
applied: true | ||
level: 0 | ||
cloudProvider: kubernetes | ||
objectName : namespaces | ||
conditions: | ||
- property : . | ||
condition: SOME | ||
value: | ||
- property : metadata.name | ||
condition : EQUAL | ||
#change the name with your namespace | ||
value : kexawebsitepublic |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.