Update CI for refactoring, prep for v2.0.0 release (#3)

pull/4/head
David Young 2020-08-28 10:07:33 +12:00 committed by GitHub
parent 0734730845
commit aa974734f8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 20 additions and 24 deletions

View File

@ -3,7 +3,7 @@ name: Lint and Test Charts
on:
push:
paths:
- 'charts/**'
- 'deploy/helm/charts/**'
- '.github/**'
jobs:
@ -15,20 +15,20 @@ jobs:
- name: Run chart-testing (lint)
id: lint
uses: helm/chart-testing-action@v1.0.0-rc.1
uses: helm/chart-testing-action@v1.0.0
with:
config: .ci/ct-config.yaml
command: lint
- name: Create kind cluster
uses: helm/kind-action@v1.0.0-alpha.3
uses: helm/kind-action@v1.0.0
with:
install_local_path_provisioner: true
# Only build a kind cluster if there are chart changes to test.
if: steps.lint.outputs.changed == 'true'
- name: Run chart-testing (install)
uses: helm/chart-testing-action@v1.0.0-rc.1
uses: helm/chart-testing-action@v1.0.0
with:
command: install
config: .ci/ct-config.yaml

View File

@ -5,7 +5,7 @@ on:
branches:
- master
paths:
- 'charts/**'
- 'deploy/helm/charts/**'
- '.github/**'
jobs:
@ -24,14 +24,9 @@ jobs:
git config user.name "$GITHUB_ACTOR"
git config user.email "$GITHUB_ACTOR@users.noreply.github.com"
# See https://github.com/helm/chart-releaser-action/issues/6
- name: Install Helm
run: |
curl -fsSLo get_helm.sh https://raw.githubusercontent.com/helm/helm/master/scripts/get-helm-3
chmod 700 get_helm.sh
./get_helm.sh
- name: Run chart-releaser
uses: helm/chart-releaser-action@v1.0.0-rc.1
uses: helm/chart-releaser-action@v1.0.0
with:
charts_dir: deploy/helm/charts/
env:
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}"

View File

@ -16,14 +16,14 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
version: 0.0.1-fp1
version: 1.0.0-pre1
# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application.
appVersion: 1.0.0
appVersion: 2.0.0
sources:
- https://github.com/portainer/portainer-k8s
- https://github.com/portainer/k8s
maintainers:
- name: funkypenguin

View File

@ -4,14 +4,14 @@ kind: "PersistentVolumeClaim"
apiVersion: "v1"
metadata:
name: portainer
namespace: portainer
namespace: portainer
annotations:
volume.alpha.kubernetes.io/storage-class: "generic"
labels:
io.portainer.kubernetes.application.stack: portainer
app.kubernetes.io/name: portainer
app.kubernetes.io/instance: portainer
app.kubernetes.io/version: "1.0.0"
app.kubernetes.io/version: "2.0.0"
spec:
accessModes:
- "ReadWriteOnce"
@ -28,7 +28,7 @@ metadata:
labels:
app.kubernetes.io/name: portainer
app.kubernetes.io/instance: portainer
app.kubernetes.io/version: "1.0.0"
app.kubernetes.io/version: "2.0.0"
---
# Source: portainer/templates/rbac.yaml
apiVersion: rbac.authorization.k8s.io/v1
@ -38,7 +38,7 @@ metadata:
labels:
app.kubernetes.io/name: portainer
app.kubernetes.io/instance: portainer
app.kubernetes.io/version: "1.0.0"
app.kubernetes.io/version: "2.0.0"
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
@ -58,7 +58,7 @@ metadata:
io.portainer.kubernetes.application.stack: portainer
app.kubernetes.io/name: portainer
app.kubernetes.io/instance: portainer
app.kubernetes.io/version: "1.0.0"
app.kubernetes.io/version: "2.0.0"
spec:
type: ClusterIP
ports:
@ -84,7 +84,7 @@ metadata:
io.portainer.kubernetes.application.stack: portainer
app.kubernetes.io/name: portainer
app.kubernetes.io/instance: portainer
app.kubernetes.io/version: "1.0.0"
app.kubernetes.io/version: "2.0.0"
spec:
replicas: 1
selector:
@ -101,7 +101,7 @@ spec:
volumes:
- name: "data"
persistentVolumeClaim:
claimName: portainer
claimName: portainer
containers:
- name: portainer
image: "portainer/portainer-ce:latest"
@ -115,7 +115,7 @@ spec:
protocol: TCP
- name: tcp-edge
containerPort: 8000
protocol: TCP
protocol: TCP
livenessProbe:
httpGet:
path: /
@ -126,3 +126,4 @@ spec:
port: 9000
resources:
{}