From 5cde1ce4d91bd47bb1892470be146379ea58a5b6 Mon Sep 17 00:00:00 2001 From: Keyvan Ebrahimpour Date: Fri, 11 Apr 2025 22:41:06 +0000 Subject: [PATCH] removed deploy.yaml --- .github/workflows/deploy.yaml | 53 ----------------------------------- 1 file changed, 53 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 579be40..0000000 --- a/.github/workflows/deploy.yaml +++ /dev/null @@ -1,53 +0,0 @@ -# .github/workflows/deploy.yaml - -name: Build and Deploy to Kubernetes - -#on: -# push: -# branches: [ main ] - -jobs: - build-and-deploy: - runs-on: ubuntu-latest - permissions: - contents: read - packages: write - - steps: - - name: Checkout code - uses: actions/checkout@v3 - - - name: Debug Variables - run: echo "Repository: ${{ github.repository }}" - - - name: Log in to GitHub Container Registry - uses: docker/login-action@v3 - with: - registry: ghcr.io - username: ${{ github.actor }} - password: ${{ secrets.GITHUB_TOKEN }} - - - name: Build and Push Docker Image - run: | - IMAGE_NAME="ghcr.io/${{ github.repository }}" - docker build -t "$IMAGE_NAME:latest" . - docker push "$IMAGE_NAME:latest" - shell: bash - - - name: Set up Kubeconfig - run: | - mkdir -p ~/.kube - echo "${{ secrets.KUBECONFIG_BASE64 }}" | base64 -d > ~/.kube/config - chmod 600 ~/.kube/config - - - name: Deploy to Kubernetes - run: | - kubectl set image deployment/homepage homepage=ghcr.io/${{ github.repository }}:latest -n web - - - name: Set up kubeconfig - run: | - mkdir -p ~/.kube - echo "${{ secrets.KUBECONFIG_BASE64 }}" | base64 -d > ~/.kube/config - chmod 600 ~/.kube/config - env: - KUBECONFIG: ~/.kube/config