From 007f3f2173e96381b1e107ebe8518726214e6eea Mon Sep 17 00:00:00 2001 From: youngjun827 Date: Sun, 19 Nov 2023 18:06:27 -0500 Subject: [PATCH] remove CD pipeline --- .github/workflows/deploy.yaml | 45 ----------------------------------- 1 file changed, 45 deletions(-) delete mode 100644 .github/workflows/deploy.yaml diff --git a/.github/workflows/deploy.yaml b/.github/workflows/deploy.yaml deleted file mode 100644 index 53eec69..0000000 --- a/.github/workflows/deploy.yaml +++ /dev/null @@ -1,45 +0,0 @@ -name: CI/CD Pipeline - -on: - push: - branches: - - main - -jobs: - deploy: - runs-on: ubuntu-latest - - steps: - - name: Checkout repository - uses: actions/checkout@v2 - - - name: Log in to Docker Hub - run: docker login -u ${{ secrets.DOCKER_USERNAME }} -p ${{ secrets.DOCKER_PASSWORD }} - - - name: Build and push Docker image - run: | - docker build \ - -f operations/docker/dockerfile.service \ - -t ${{ secrets.DOCKER_USERNAME }}/service/thoughts-api:${{ github.sha }} \ - --build-arg BUILD_REF=$(VERSION) \ - --build-arg BUILD_DATE=`date -u +"%Y-%m-%dT%H:%M:%SZ"` \ - . - docker push ${{ secrets.DOCKER_USERNAME }}/service/thoughts-api:${{ github.sha }} - - - name: Set up kind cluster - run: | - kind create cluster --name your-cluster-name --config operations/k8s/dev/kind-config.yaml - kubectl wait --timeout=120s --namespace=local-path-storage --for=condition=Available deployment/local-path-provisioner - - - name: Load Docker images - run: kind load docker-image ${{ secrets.DOCKER_USERNAME }}/service/thoughts-api:${{ github.sha }} --name your-cluster-name - - - name: Apply Kubernetes manifests - run: | - kustomize build operations/k8s/dev/database | kubectl apply -f - - kubectl rollout status --namespace=thoughts-system --watch --timeout=120s sts/database - kustomize build operations/k8s/dev/thoughts | kubectl apply -f - - kubectl wait pods --namespace=thoughts-system --selector app=thoughts --timeout=120s --for=condition=Ready - - - name: Restart deployment - run: kubectl rollout restart deployment thoughts --namespace=thoughts-system