Skip to content

Commit 2f73e44

Browse files
committed
Add CI for charts
1 parent 4d15af4 commit 2f73e44

File tree

3 files changed

+64
-2
lines changed

3 files changed

+64
-2
lines changed
Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
---
2+
name: Release Helm charts
3+
on:
4+
push:
5+
# workflow_dispatch:
6+
# inputs:
7+
# tag:
8+
# description: 'Tag in semver format'
9+
# required: true
10+
11+
jobs:
12+
container_prod_all_providers:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@v2 # Checking out the repo
16+
- uses: azure/setup-helm@v1
17+
- uses: actions/setup-python@v2
18+
with:
19+
python-version: 3.7
20+
- name: Set up chart-testing
21+
uses: helm/[email protected]
22+
# - name: Run chart-testing (list-changed)
23+
# id: list-changed
24+
# run: |
25+
# changed=$(ct list-changed)
26+
# if [[ -n "$changed" ]]; then
27+
# echo "::set-output name=changed::true"
28+
# fi
29+
- name: Run chart-testing (lint)
30+
run: ct lint --chart-dirs helm-charts --all --validate-maintainers=false --chart-repos bitnami=https://charts.bitnami.com/bitnami
31+
# - name: Package charts
32+
# run: |
33+
# set -e
34+
# cd docs/
35+
# helm package ../helm-charts/*
36+
# - name: Generate Release Body
37+
# env:
38+
# RELEASE_BODY_FILE: "${{ github.event.inputs.tag }}-prod-all-providers-release-body.md"
39+
# run: |
40+
# echo "## Components" > ${RELEASE_BODY_FILE}
41+
# echo "" >> ${RELEASE_BODY_FILE}
42+
# echo "This release includes the following:" >> ${RELEASE_BODY_FILE}
43+
# echo "" >> ${RELEASE_BODY_FILE}
44+
# echo "### Source image" >> ${RELEASE_BODY_FILE}
45+
# echo "" >> ${RELEASE_BODY_FILE}
46+
# echo "- $(grep ^FROM ./docker/prod-all-providers/Dockerfile |cut -d ' ' -f2) + OS updates" >> ${RELEASE_BODY_FILE}
47+
# echo "" >> ${RELEASE_BODY_FILE}
48+
# echo "### Gems" >> ${RELEASE_BODY_FILE}
49+
# echo "" >> ${RELEASE_BODY_FILE}
50+
# echo "$(grep -e 'vmpooler ([0-9]' docker/prod-all-providers/Gemfile.lock | xargs -L1 echo -)" >> ${RELEASE_BODY_FILE}
51+
# echo "$(grep -e 'vmpooler-provider-.* ([0-9]' docker/prod-all-providers/Gemfile.lock | xargs -L1 echo -)" >> ${RELEASE_BODY_FILE}
52+
# - name: Tag Release
53+
# uses: ncipollo/release-action@v1
54+
# with:
55+
# tag: ${{ github.event.inputs.tag }}-prod-all-providers
56+
# token: ${{ secrets.GITHUB_TOKEN }}
57+
# draft: false
58+
# prerelease: false
59+
# bodyFile: ${{ github.event.inputs.tag }}-prod-all-providers-release-body.md
60+
# generateReleaseNotes: true

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ cd docs/
2626
helm package ../helm-charts/*
2727
helm repo index --url https://puppetlabs.github.io/vmpooler-deployment/ .
2828
git add .
29+
cd ..
2930
git commit -a
3031
```
3132

helm-charts/vmpooler/values.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,8 @@ pools:
161161
snapshot_mainMem_iowait: '5'
162162
network: 'vmpooler1'
163163
- name: 'centos-6-x86_64-pixa4'
164-
alias: [ 'centos-6-x86_64' ]
164+
alias:
165+
- 'centos-6-x86_64'
165166
template: 'templates/cluster2/centos-6.8-x86_64-0.0.2-8gb'
166167
folder: test-instance/cluster2/centos-6-x86_64'
167168
datastore: 'vmpooler_cluster2'
@@ -172,4 +173,4 @@ pools:
172173
provider: 'vsphere-ci67'
173174
snapshot_mainMem_ioBlockPages: '2048'
174175
snapshot_mainMem_iowait: '5'
175-
network: 'vmpooler2'
176+
network: 'vmpooler2'

0 commit comments

Comments
 (0)