From 8ad49b0d41ae12850aaa32198e23cf407691b7d3 Mon Sep 17 00:00:00 2001 From: lory Date: Fri, 4 Sep 2026 15:13:36 +0000 Subject: [PATCH] Add .gitea/workflows/build-deploy.yaml --- .gitea/workflows/build-deploy.yaml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 .gitea/workflows/build-deploy.yaml diff --git a/.gitea/workflows/build-deploy.yaml b/.gitea/workflows/build-deploy.yaml new file mode 100644 index 0000000..eeb6eda --- /dev/null +++ b/.gitea/workflows/build-deploy.yaml @@ -0,0 +1,16 @@ +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 \ No newline at end of file