Merge branch 'dev' into shlok-official/43-automation-script

This commit is contained in:
Danielkon96 2021-10-14 20:09:51 +00:00
Родитель 8b6f27bdd9 95b835ca3f
Коммит e9fd84455b
5 изменённых файлов: 75 добавлений и 5 удалений

4
.github/workflows/ci.yml поставляемый
Просмотреть файл

@ -38,8 +38,8 @@ jobs:
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- run: brew install FairwindsOps/tap/pluto - run: brew install FairwindsOps/tap/pluto
- run: helm template ./charts/msal-proxy | pluto detect - ###- run: helm template ./charts/msal-proxy --api-versions v1.13.0 | pluto detect -
#- run: pluto detect-files -d ./charts/msal-proxy - run: pluto detect-files -d ./charts/msal-proxy
push_to_registries: push_to_registries:

33
.github/workflows/main.yml поставляемый Normal file
Просмотреть файл

@ -0,0 +1,33 @@
name: Unattended Deploy v2
env:
iteration: ${{github.run_number}}
# Controls when the workflow will run
on:
# Triggers the workflow on push or pull request events but only for the master branch
push:
branches: [ master ]
pull_request:
branches: [ master ]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
run_main-sh:
runs-on: ubuntu-latest
name: Run main.sh script
steps:
# nothing
- name: 'Login via Azure CLI'
uses: azure/login@v1
with:
creds: ${{ secrets.KGATES_AZURE_SP }}
- uses: actions/checkout@v2
- name: Call the script
run: bash ./main.sh -a msal-test-kgates$iteration -c easyauth-kgates$iteration -r easy-auth$iteration -e kgates@microsoft.com -d microsoft.com -l eastus

8
.github/workflows/pluto.yml поставляемый
Просмотреть файл

@ -3,8 +3,12 @@
name: Check deprecated APIs name: Check deprecated APIs
on: on:
push:
workflow_dispatch: workflow_dispatch:
inputs:
targetEnv:
description: 'Target environment: dev, test, prod'
required: false
default: 'dev'
jobs: jobs:
mac: mac:
@ -12,6 +16,6 @@ jobs:
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- run: brew install FairwindsOps/tap/pluto - run: brew install FairwindsOps/tap/pluto
- run: helm template ./charts/msal-proxy | pluto detect - - run: helm template ./charts/msal-proxy --api-versions v1.16.0 | pluto detect -
#pluto detect-files -d ./ #pluto detect-files -d ./

33
.github/workflows/unattended_deployment.yml поставляемый Normal file
Просмотреть файл

@ -0,0 +1,33 @@
name: Unattended Deployment
env:
iteration: ${{github.run_number}}
# Controls when the workflow will run
on:
push:
branches:
- master
- dev
workflow_dispatch:
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
run_main-sh:
runs-on: ubuntu-latest
name: Run main.sh script
steps:
# nothing
- name: 'Login via Azure CLI'
uses: azure/login@v1
with:
creds: ${{ secrets.KGATES_AZURE_SP }}
- uses: actions/checkout@v2
- name: Call the script
run: bash ./main.sh -a msal-test-kgates$iteration -c easyauth-kgates$iteration -r easy-auth$iteration -e kgates@microsoft.com -d microsoft.com -l eastus

Просмотреть файл

@ -1,7 +1,7 @@
{{- if .Values.ingress.enabled -}} {{- if .Values.ingress.enabled -}}
{{- $fullName := include "msal-proxy.fullname" . -}} {{- $fullName := include "msal-proxy.fullname" . -}}
{{- $svcPort := .Values.service.port -}} {{- $svcPort := .Values.service.port -}}
{{- if semverCompare ">=1.14-0" .Capabilities.KubeVersion.GitVersion -}} {{- if semverCompare ">=1.14-0" Capabilities.KubeVersion.GitVersion -}}
apiVersion: networking.k8s.io/v1beta1 apiVersion: networking.k8s.io/v1beta1
{{- else -}} {{- else -}}
apiVersion: extensions/v1beta1 apiVersion: extensions/v1beta1