sharenet/ci-pod.yaml
continuist eb6e373981
Some checks are pending
CI/CD Pipeline (Forgejo Container Registry) / Run Tests (DinD) (push) Waiting to run
CI/CD Pipeline (Forgejo Container Registry) / Build and Push Docker Images (DinD) (push) Blocked by required conditions
CI/CD Pipeline (Forgejo Container Registry) / Deploy to Production (push) Blocked by required conditions
Change to using Forgejo Container Registry
2025-08-30 19:38:54 -04:00

77 lines
1.5 KiB
YAML

apiVersion: v1
kind: Pod
metadata:
name: ci-cd-test-pod
labels:
app: ci-cd-test
spec:
containers:
- name: postgres
image: postgres:15-alpine
env:
- name: POSTGRES_DB
value: "sharenet_test"
- name: POSTGRES_USER
value: "postgres"
- name: POSTGRES_PASSWORD
value: "password"
ports:
- containerPort: 5432
protocol: TCP
volumeMounts:
- name: postgres-data
mountPath: /var/lib/postgresql/data
command: ["postgres"]
args: ["-c", "log_statement=all"]
livenessProbe:
exec:
command:
- pg_isready
- -U
- postgres
initialDelaySeconds: 30
periodSeconds: 10
readinessProbe:
exec:
command:
- pg_isready
- -U
- postgres
initialDelaySeconds: 5
periodSeconds: 5
- name: rust-toolchain
image: rust:1.75-slim
volumeMounts:
- name: workspace
mountPath: /workspace
workingDir: /workspace/backend
command: ["sleep"]
args: ["infinity"]
env:
- name: CI_HOST
value: "localhost"
- name: APP_NAME
value: "sharenet"
- name: node-toolchain
image: node:20-slim
volumeMounts:
- name: workspace
mountPath: /workspace
workingDir: /workspace/frontend
command: ["sleep"]
args: ["infinity"]
env:
- name: CI_HOST
value: "localhost"
- name: APP_NAME
value: "sharenet"
volumes:
- name: postgres-data
emptyDir: {}
- name: workspace
hostPath:
path: /tmp/ci-workspace
type: Directory