diff --git a/.gitea/workflows/build-deploy.yaml b/.gitea/workflows/build-deploy.yaml index eeb6eda..285aab3 100644 --- a/.gitea/workflows/build-deploy.yaml +++ b/.gitea/workflows/build-deploy.yaml @@ -5,11 +5,19 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - - uses: docker/setup-buildx-action@v2 + + - name: Configuration de Buildx pour autoriser le registre local + uses: docker/setup-buildx-action@v2 + with: + config-inline: | + [registry."registry-service.container-registry.svc.cluster.local:5000"] + http = true + insecure = true + - 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 + docker buildx build --push -t registry-service.container-registry.svc.cluster.local:5000/apps/microservice-sample:latest . + - name: Déployer sur Kubernetes run: | kubectl apply -f k8s-deployment.yaml