Skip to content

Commit

Permalink
fix(bom): Add external dependency versions. (#1542)
Browse files Browse the repository at this point in the history
  • Loading branch information
jtk54 committed Apr 6, 2017
1 parent e40aab4 commit 91af272
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion dev/generate_bom.py
Expand Up @@ -24,9 +24,15 @@
from annotate_source import Annotator
from spinnaker.run import run_quick

DEPENDENCIES = 'dependencies'
SERVICES = 'services'
VERSION = 'version'

# Dependency versions.
CONSUL_VERSION = '0.7.5'
REDIS_VERSION = '3.2.8'
VAULT_VERSION = '0.7.0'

GOOGLE_CONTAINER_BUILDER_SERVICE_BASE_CONFIG = {
'steps': [
{
Expand Down Expand Up @@ -201,7 +207,12 @@ def generate_changelog(self):
clog.write('\n'.join(changelog))

def write_bom(self):
output_yaml = {SERVICES: {}}
output_yaml = {SERVICES: {}, DEPENDENCIES: {}}

# Dependencies
output_yaml[DEPENDENCIES]['consul'] = {VERSION: CONSUL_VERSION}
output_yaml[DEPENDENCIES]['redis'] = {VERSION: REDIS_VERSION}
output_yaml[DEPENDENCIES]['vault'] = {VERSION: VAULT_VERSION}

for comp in self.__component_versions:
version_bump = self.__component_versions[comp]
Expand Down

0 comments on commit 91af272

Please sign in to comment.