Skip to content

Commit fc0bb96

Browse files
authored
Add New Port Mappings for Helm chart (#352)
1 parent 3dbff57 commit fc0bb96

File tree

5 files changed

+68
-18
lines changed

5 files changed

+68
-18
lines changed
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Docker Image Build for PRs
2+
3+
on:
4+
pull_request:
5+
types: [opened, reopened, sychronize]
6+
7+
jobs:
8+
build:
9+
runs-on: ubuntu-latest
10+
11+
steps:
12+
- uses: actions/checkout@v3
13+
14+
- name: Docker metadata
15+
id: meta
16+
uses: docker/metadata-action@v4
17+
with:
18+
images: facebook/whatsapp_proxy
19+
tags: |
20+
type=raw,value={{date 'YYYYMMDD'}}
21+
22+
- name: Set up QEMU
23+
uses: docker/setup-qemu-action@v2
24+
25+
- name: Set up Docker Buildx
26+
uses: docker/setup-buildx-action@v2
27+
28+
- name: Build PR
29+
uses: docker/build-push-action@v3
30+
with:
31+
context: ./proxy
32+
platforms: linux/amd64,linux/arm64,linux/arm/v7,linux/arm/v6
33+
push: false
34+
tags: |
35+
${{ steps.meta.outputs.tags }}
36+
facebook/whatsapp_proxy:latest

.github/workflows/docker-image.yml

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Docker Image CI
1+
name: Docker Build and PR for Main
22

33
# Run on every push to main + weekly, Sunday @ midnight
44
# to keep the image fresh
@@ -7,9 +7,6 @@ on:
77
branches: [ "main" ]
88
schedule:
99
- cron: "0 0 * * 0"
10-
# On pull-requests only a build is run, not a push to Docker Hub
11-
pull_request:
12-
types: [opened, reopened, synchronize]
1310

1411
jobs:
1512

@@ -19,7 +16,7 @@ jobs:
1916

2017
steps:
2118
- uses: actions/checkout@v3
22-
19+
2320
- name: Docker metadata
2421
id: meta
2522
uses: docker/metadata-action@v4
@@ -33,13 +30,13 @@ jobs:
3330

3431
- name: Set up Docker Buildx
3532
uses: docker/setup-buildx-action@v2
36-
33+
3734
- name: Login to dockerhub
3835
uses: docker/login-action@v2
3936
with:
4037
username: ${{ secrets.DOCKERHUB_USERNAME }}
4138
password: ${{ secrets.DOCKERHUB_TOKEN }}
42-
39+
4340
- name: Build and push
4441
uses: docker/build-push-action@v3
4542
with:
@@ -49,4 +46,3 @@ jobs:
4946
tags: |
5047
${{ steps.meta.outputs.tags }}
5148
facebook/whatsapp_proxy:latest
52-

charts/whatsapp-proxy-chart/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ type: application
1717
# This is the chart version. This version number should be incremented each time you make changes
1818
# to the chart and its templates, including the app version.
1919
# Versions are expected to follow Semantic Versioning (https://semver.org/)
20-
version: 1.0.3
20+
version: 1.1.0
2121

2222
# This is the version number of the application being deployed. This version number should be
2323
# incremented each time you make changes to the application. Versions are not expected to

charts/whatsapp-proxy-chart/templates/service.yaml

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,24 @@ spec:
5454
{{- end}}
5555
{{- if .Values.service.stats_port }}
5656
- port: {{ .Values.service.stats_port }}
57-
targetPort: {{ .Values.service.stats_port }}
57+
targetPort: 8199
5858
protocol: TCP
5959
name: stats
6060
{{- end}}
61+
{{- if .Values.service.media_port }}
62+
- port: {{ .Values.service.media_port }}
63+
targetPort: 587
64+
protocol: TCP
65+
name: media
66+
{{- end}}
67+
68+
{{- if .Values.service.media_proxy_port }}
69+
- port: {{ .Values.service.media_proxy_port }}
70+
targetPort: 7777
71+
protocol: TCP
72+
name: media
73+
{{- end}}
74+
75+
6176
selector:
6277
{{- include "whatsapp-proxy-chart.selectorLabels" . | nindent 4 }}

charts/whatsapp-proxy-chart/values.yaml

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -48,15 +48,18 @@ securityContext: {}
4848
# runAsUser: 1000
4949

5050
service:
51-
type: ClusterIP
52-
annotations: {}
51+
type: LoadBalancer
52+
annotations:
53+
service.beta.kubernetes.io/aws-load-balancer-type: nlb
5354
port: 8080
54-
# http_port: 80
55-
# https_port: 443
56-
# jabber_port: 5222
57-
http_proxy_port: 8080
58-
https_proxy_port: 8443
59-
jabber_proxy_port: 8222
55+
http_port: 80
56+
https_port: 443
57+
jabber_port: 5222
58+
media_port: 587
59+
# http_proxy_port: 8080
60+
# https_proxy_port: 8443
61+
# jabber_proxy_port: 8222
62+
# media_proxy_port: 7777
6063
# stats_port: 8199
6164

6265
ingress:

0 commit comments

Comments
 (0)