Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 36 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: 'Deploy'
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

jobs:
deployment:
runs-on: 'ubuntu-latest'
steps:
- name: 'Checkout'
uses: 'actions/checkout@v1'

- name: 'Deploy'
# Parameters are pulled directly from the GitHub deployment event so the
# configuration for the job here is very minimal.
uses: 'deliverybot/helm@master'
with:
helm: 'helm3'
token: '${{ github.token }}'
secrets: '${{ toJSON(secrets) }}'
version: '${{ github.sha }}'
chart: '12factor'
release: 'twelvefactor'
namespace: 'manquius'
values: |
pulsar:
enabled: false
kafka:
enabled: false
replicaCount: 1
serviceAccount:
create: false
env:
KUBECONFIG_FILE: '${{ secrets.KUBECONFIG }}'
3 changes: 3 additions & 0 deletions 12factor/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,14 @@ dependencies:
version: 10.7.5
repository: https://charts.bitnami.com/bitnami
alias: redis
condition: redis.enabled
- name: kafka
version: 11.2.0
repository: https://charts.bitnami.com/bitnami
alias: kafka
condition: kafka.enabled
- name: pulsar
version: 1.0.5
repository: https://cnieg.github.io/helm-charts
alias: pulsar
condition: pulsar.enabled
Binary file added 12factor/charts/kafka-11.2.0.tgz
Binary file not shown.
Binary file added 12factor/charts/pulsar-1.0.5.tgz
Binary file not shown.
Binary file added 12factor/charts/redis-10.7.5.tgz
Binary file not shown.
2 changes: 1 addition & 1 deletion 12factor/templates/consumer-service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ metadata:
labels:
{{- include "12factor.labels" . | nindent 4 }}-consumer-service
spec:
type: LoadBalancer
type: ClusterIP
ports:
- port: {{ .Values.service.port }}
targetPort: 8080
Expand Down
2 changes: 1 addition & 1 deletion 12factor/templates/producer-service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ metadata:
labels:
{{- include "12factor.labels" . | nindent 4 }}-producer-service
spec:
type: LoadBalancer
type: ClusterIP
ports:
- port: {{ .Values.service.port }}
targetPort: 8080
Expand Down