Skip to content

Commit

Permalink
feat(ci): Enable chart release
Browse files Browse the repository at this point in the history
  • Loading branch information
donch committed Jan 25, 2023
1 parent 055fcfe commit 7fdbb37
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -463,18 +463,18 @@ jobs:
charts_repo = os.path.join(os.environ['WORKSPACE'], 'enix-charts')
run('git', 'clone', 'https://github.com/enix/helm-charts', charts_repo)
# action('copy chart files')
# repo_chart_path = os.path.join(charts_repo, 'charts', os.environ['CHART_NAME'])
# shutil.copytree(chart_path, repo_chart_path, symlinks=True, dirs_exist_ok=False)
#
# action('create the chart package')
# run(os.environ['CR_PATH'], 'package', repo_chart_path, cwd=charts_repo)
#
# action('upload the chart')
# run(os.environ['CR_PATH'], 'upload', '--skip-existing', '--owner', 'enix', '--git-repo', 'helm-charts', cwd=charts_repo)
#
# action('update repository index')
# run(os.environ['CR_PATH'], 'index', '--push', '-i', 'index.yaml', '--owner', 'enix', '--git-repo', 'helm-charts', cwd=charts_repo)
action('copy chart files')
repo_chart_path = os.path.join(charts_repo, 'charts', os.environ['CHART_NAME'])
shutil.copytree(chart_path, repo_chart_path, symlinks=True, dirs_exist_ok=False)
action('create the chart package')
run(os.environ['CR_PATH'], 'package', repo_chart_path, cwd=charts_repo)
action('upload the chart')
run(os.environ['CR_PATH'], 'upload', '--skip-existing', '--owner', 'enix', '--git-repo', 'helm-charts', cwd=charts_repo)
action('update repository index')
run(os.environ['CR_PATH'], 'index', '--push', '-i', 'index.yaml', '--owner', 'enix', '--git-repo', 'helm-charts', cwd=charts_repo)
cleanup:
name: Cleanup
Expand Down

0 comments on commit 7fdbb37

Please sign in to comment.