microservice-sample/.gitea/workflows/build-deploy.yaml
lory 8ad49b0d41
Some checks failed
CI/CD Pipeline / pipeline-execution (push) Failing after 7s
Add .gitea/workflows/build-deploy.yaml
2026-09-04 15:13:36 +00:00

16 lines
641 B
YAML

name: CI/CD Pipeline
on: [push]
jobs:
pipeline-execution:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: docker/setup-buildx-action@v2
- name: Compiler et Envoyer au registre privé
run: |
docker build -t registry-service.container-registry.svc.cluster.local:5000/apps/microservice-sample:latest .
docker push registry-service.container-registry.svc.cluster.local:5000/apps/microservice-sample:latest
- name: Déployer sur Kubernetes
run: |
kubectl apply -f k8s-deployment.yaml
kubectl rollout restart deployment/microservice-sample