- Adds branch pattern triggers for k8s/** and scripts/** to enable CI/CD from infra or automation-related updates - Improves workflow robustness and flexibility for feature and tooling branches
42 lines
722 B
YAML
42 lines
722 B
YAML
apiVersion: v1
|
|
kind: Namespace
|
|
metadata:
|
|
name: prod
|
|
---
|
|
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: homepage
|
|
namespace: prod
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
app: homepage
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: homepage
|
|
spec:
|
|
containers:
|
|
- name: homepage
|
|
image: ghcr.io/kebrahimpour/avisenna-landing-page:latest
|
|
ports:
|
|
- containerPort: 80
|
|
imagePullPolicy: Always
|
|
imagePullSecrets:
|
|
- name: ghcr-creds
|
|
---
|
|
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
name: homepage
|
|
namespace: prod
|
|
spec:
|
|
selector:
|
|
app: homepage
|
|
ports:
|
|
- protocol: TCP
|
|
port: 80
|
|
targetPort: 80
|
|
type: ClusterIP
|