parent
93b0fe0123
commit
d96f56d825
8
.github/dependabot.yml
vendored
8
.github/dependabot.yml
vendored
@ -1,6 +1,14 @@
|
|||||||
---
|
---
|
||||||
version: 2
|
version: 2
|
||||||
updates:
|
updates:
|
||||||
|
- package-ecosystem: "github-actions"
|
||||||
|
directory: "/"
|
||||||
|
target-branch: dev
|
||||||
|
schedule:
|
||||||
|
interval: "daily"
|
||||||
|
reviewers:
|
||||||
|
- "ditkrg/devops"
|
||||||
|
|
||||||
- package-ecosystem: "npm"
|
- package-ecosystem: "npm"
|
||||||
directory: "/"
|
directory: "/"
|
||||||
target-branch: dev
|
target-branch: dev
|
||||||
|
|||||||
40
.github/workflows/tests-base.yaml
vendored
Normal file
40
.github/workflows/tests-base.yaml
vendored
Normal file
@ -0,0 +1,40 @@
|
|||||||
|
---
|
||||||
|
name: Run Tests
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches-ignore:
|
||||||
|
- dev
|
||||||
|
- main
|
||||||
|
|
||||||
|
paths-ignore:
|
||||||
|
- "README.md"
|
||||||
|
- ".vscode/**"
|
||||||
|
|
||||||
|
workflow_call:
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
run-tests:
|
||||||
|
name: Run Tests
|
||||||
|
timeout-minutes: 10
|
||||||
|
runs-on: ubuntu-20.04
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
|
- name: Kubectl tool installer
|
||||||
|
uses: azure/setup-kubectl@v3
|
||||||
|
|
||||||
|
- name: Setup Kustomize
|
||||||
|
uses: imranismail/setup-kustomize@v2
|
||||||
|
|
||||||
|
- name: Build k8s manifests
|
||||||
|
working-directory: kubernetes
|
||||||
|
run: |
|
||||||
|
envs=( "development" "production" )
|
||||||
|
|
||||||
|
for i in "${envs[@]}"
|
||||||
|
do
|
||||||
|
kustomize build "$i"
|
||||||
|
done
|
||||||
@ -7,10 +7,3 @@ targetCustomizations:
|
|||||||
env: dev
|
env: dev
|
||||||
kustomize:
|
kustomize:
|
||||||
dir: development
|
dir: development
|
||||||
|
|
||||||
- name: production
|
|
||||||
clusterSelector:
|
|
||||||
matchLabels:
|
|
||||||
env: prod
|
|
||||||
kustomize:
|
|
||||||
dir: production
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user