Skip to content

Commit

Permalink
Use infra domain and test charts
Browse files Browse the repository at this point in the history
Signed-off-by: Alexander Dobrodey <[email protected]>
  • Loading branch information
ADobrodey committed Dec 6, 2023
1 parent c496083 commit 101bc9c
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 42 deletions.
79 changes: 39 additions & 40 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,50 +6,49 @@ on:
- main

jobs:
# test:
# runs-on: ubuntu-latest
# steps:
# - name: Checkout
# uses: actions/checkout@v2
# with:
# fetch-depth: 0
# - name: Set up Helm
# uses: azure/setup-helm@v3
# with:
# version: v3.10.0
# - name: lint
# run: |
# for x in ./stable/*; do
# pushd $x
# helm dependency update .
# helm lint . \
# --set global.org=core \
# --set global.serviceName=test \
# --with-subcharts \
# --strict
# popd
# done
# - name: validate
# run: |
# for x in ./stable/*; do
# if [[ "$x" != "./stable/k8s-common" ]]; then
# pushd $x
# helm template . \
# --debug \
# --generate-name \
# --namespace test \
# --dependency-update \
# --set global.org=core \
# --set global.serviceName=test \
# --values values.yaml
# popd
# fi
# done
test:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Set up Helm
uses: azure/setup-helm@v3
with:
version: v3.10.0
- name: lint
run: |
for x in ./stable/*; do
pushd $x
helm dependency update .
helm lint . \
--set global.org=core \
--set global.serviceName=test \
--with-subcharts \
--strict
popd
done
- name: validate
run: |
for x in ./stable/*; do
pushd $x
helm template . \
--debug \
--generate-name \
--namespace test \
--dependency-update \
--set global.org=core \
--set global.serviceName=test \
--values values.yaml
popd
done
release:
permissions:
contents: write
runs-on: ubuntu-latest
# needs: test
needs: test
steps:
- name: Checkout
uses: actions/checkout@v3
Expand Down
4 changes: 2 additions & 2 deletions global/k8s-common/templates/_ingress.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ This solution should be changed in the future.
{{ required "global.serviceName is missing" .Values.global.serviceName }}.
{{- required "global.org is missing" .Values.global.org }}
{{- if not .Values.global.production -}}-{{ .Values.global.environmentType }}{{- end -}}
.aws.
.infra.
{{- required "global.domain is missing" .Values.global.domain }}
{{- end -}}

Expand All @@ -129,7 +129,7 @@ This solution should be changed in the future.
{{- required "global.serviceName is missing" .Values.global.serviceName }}.
{{- required "global.org is missing" .Values.global.org }}
{{- if not .Values.global.production -}}-{{ .Values.global.environmentType }}{{- end -}}
.aws.
.infra.
{{- required "global.domain is missing" .Values.global.domain }}
{{- end -}}
{{- end -}}

0 comments on commit 101bc9c

Please sign in to comment.