Skip to content

Commit

Permalink
Add deployment of Helm charts
Browse files Browse the repository at this point in the history
  • Loading branch information
sbrunner committed Jul 28, 2021
1 parent 1ac4980 commit cb141bc
Show file tree
Hide file tree
Showing 8 changed files with 541 additions and 151 deletions.
4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,7 @@ checks: prospector
.PHONY: prospector
prospector: build-checker
docker run --volume=${PWD}:/app $(GITHUB_REPOSITORY)-checker prospector --ignore-paths=example-project/ --output=pylint

.PHONY: jsonschema
jsonschema:
jsonschema-gentypes
7 changes: 6 additions & 1 deletion c2cciutils/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
c2cciutils shared utils function.
"""

import glob
import json
import os.path
import pkgutil
Expand All @@ -10,12 +11,12 @@
import sys
from typing import Any, Dict, List, Match, Optional, Pattern, Tuple, TypedDict, cast

import jsonschema_gentypes.validate
import magic
import requests
import ruamel.yaml

import c2cciutils.configuration
import jsonschema_gentypes.validate


def get_repository() -> str:
Expand Down Expand Up @@ -151,6 +152,10 @@ def get_config() -> c2cciutils.configuration.Configuration:
"dockerhub": {"versions": ["version_tag", "version_branch", "rebuild", "feature_branch"]},
},
},
"helm": {
"versions": ["version_tag"],
"folders": [os.path.dirname(f) for f in glob.glob("./**/Chart.yaml", recursive=True)],
},
"publish": {"google_calendar": {"on": ["version_branch", "version_tag", "rebuild"]}},
},
"checks": {
Expand Down
Loading

0 comments on commit cb141bc

Please sign in to comment.