Skip to content

Commit

Permalink
change CD pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
lnart committed Apr 21, 2024
1 parent 0ef1369 commit a09facf
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 5 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/push-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -107,5 +107,7 @@ jobs:
namespace: lennart
manifests: |
kubernetes/blueDeployment.yml
kubernetes/blueService.yml
kubernetes/Ingress.yml
images: |
lnart/dryager-backend:${{ github.sha }}
6 changes: 3 additions & 3 deletions kubernetes/greenDeployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ metadata:
namespace: lennart
name: green-deployment
spec:
replicas: 3
replicas: 1
selector:
matchLabels:
app: dryagerapi
Expand All @@ -20,10 +20,10 @@ spec:
image: lnart/dryager-backend:latest
imagePullPolicy: Always
ports:
- containerPort: 3032
- containerPort: 3033
env:
- name: PORT
value: "3032"
value: "3033"
- name: CLOUD_DB_CONNECTION_STRING
value: "mongodb+srv://devPafel:xeLTlvbAcQHxAY1c@mongocluster.q994q4k.mongodb.net/MeatMatureDB?retryWrites=true&w=majority&appName=MongoCluster"
- name: MQTT_USERNAME
Expand Down
4 changes: 2 additions & 2 deletions kubernetes/greenService.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ metadata:
spec:
ports:
- port: 8005
name: green-service
targetPort: 3032
name: green-api
targetPort: 3033
selector:
app: dryagerapi
env: green
10 changes: 10 additions & 0 deletions kubernetes/ingress.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,13 @@ spec:
name: blue-service
port:
name: blue-api
- host: staging.api.dryager.lennartpafel.com
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: green-service
port:
name: green-api

0 comments on commit a09facf

Please sign in to comment.