Skip to content

Commit

Permalink
fix: empty commit for testing
Browse files Browse the repository at this point in the history
  • Loading branch information
Filipe Forattini committed Aug 9, 2022
1 parent 0ac30b3 commit 43760a7
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 3 deletions.
7 changes: 7 additions & 0 deletions .github/actions/k8s-install-dependencies/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,13 @@ runs:
--data-value repository=${{inputs.repository}} \
> ${{inputs.renderedOutput}}
- name: Docs | Outputs dependencies
if: steps.analysis.outputs.feature_has_dependencies == 'true'
shell: bash
run: |
echo -e "<details><summary>📝 Dependencies</summary>\n\n\`\`\`yml \n$(cat ${{inputs.renderedOutput}})\n \`\`\`\n </details>\n\n" >> $GITHUB_STEP_SUMMARY
- name: Dependencies | Helm update
if: steps.analysis.outputs.feature_has_dependencies == 'true'
shell: bash
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/svc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -793,15 +793,15 @@ jobs:

# configs
- name: K8s create config-map
if: steps.analysis.outputs.feature_has_configs == 'true'
if: steps.analysis.outputs.feature_has_configs
run: |
kubectl create configmap -n ${{steps.analysis.outputs.deploy_namespace}} ${{steps.analysis.outputs.repository}} --from-env-file=${{steps.analysis.outputs.deploy_configs_file}} --dry-run=client --validate=false --output=yaml | kubectl apply -f -
kubectl create configmap -n ${{steps.analysis.outputs.deploy_namespace}} ${{steps.analysis.outputs.repository}}-${{steps.versioning.outputs.version}} --from-env-file=${{steps.analysis.outputs.deploy_configs_file}} --dry-run=client --validate=false --output=yaml | kubectl apply -f -
kubectl get configmap -n ${{steps.analysis.outputs.deploy_namespace}} ${{steps.analysis.outputs.repository}} -o jsonpath='{.data}' | jq -r 'keys[]' | tr '\n' '~' | sed 's/~/,/g;s/,$//' > ./manifests/k8s-configs-keys.txt
# secrets
- name: Decrypt secrets
if: steps.analysis.outputs.feature_has_secrets == 'true'
if: steps.analysis.outputs.feature_has_secrets
run: |
gpg \
--yes --batch --quiet --decrypt \
Expand All @@ -810,7 +810,7 @@ jobs:
${{steps.analysis.outputs.deploy_secrets_file}}
- name: K8s create secrets
if: steps.analysis.outputs.feature_has_secrets == 'true'
if: steps.analysis.outputs.feature_has_secrets
run: |
kubectl create secret generic -n ${{steps.analysis.outputs.deploy_namespace}} ${{steps.analysis.outputs.repository}} --from-env-file=./manifests/k8s-secrets.env --dry-run=client --validate=false --output=yaml | kubectl apply -f -
kubectl create secret generic -n ${{steps.analysis.outputs.deploy_namespace}} ${{steps.analysis.outputs.repository}}-${{steps.versioning.outputs.version}} --from-env-file=./manifests/k8s-secrets.env --dry-run=client --validate=false --output=yaml | kubectl apply -f -
Expand Down
7 changes: 7 additions & 0 deletions src/actions/k8s-install-dependencies/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,13 @@ runs:
--data-value repository=${{inputs.repository}} \
> ${{inputs.renderedOutput}}
- name: Docs | Outputs dependencies
if: steps.analysis.outputs.feature_has_dependencies == 'true'
shell: bash
run: |
echo -e "<details><summary>📝 Dependencies</summary>\n\n\`\`\`yml \n$(cat ${{inputs.renderedOutput}})\n \`\`\`\n </details>\n\n" >> $GITHUB_STEP_SUMMARY
- name: Dependencies | Helm update
if: steps.analysis.outputs.feature_has_dependencies == 'true'
shell: bash
Expand Down

0 comments on commit 43760a7

Please sign in to comment.