Add .gitea/workflows/build-deploy.yaml
Some checks failed
CI/CD Pipeline / pipeline-execution (push) Failing after 7s
Some checks failed
CI/CD Pipeline / pipeline-execution (push) Failing after 7s
This commit is contained in:
parent
4acb603a40
commit
8ad49b0d41
16
.gitea/workflows/build-deploy.yaml
Normal file
16
.gitea/workflows/build-deploy.yaml
Normal file
@ -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
|
||||||
Loading…
Reference in New Issue
Block a user