Skip to content

Commit

Permalink
Removed k8s deployment from CI-CD.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
mhmdksh authored Jul 17, 2023
1 parent 16ad1a5 commit ecfd22a
Showing 1 changed file with 0 additions and 27 deletions.
27 changes: 0 additions & 27 deletions .github/workflows/CI-CD.yml
Original file line number Diff line number Diff line change
Expand Up @@ -91,30 +91,3 @@ jobs:
host: ${{ secrets.PRODUCTION_HOST }}
username: ${{ secrets.PRODUCTION_USERNAME }}
privateKey: ${{ secrets.PRODUCTION_PRIVATE_KEY}}

deploy-k8s:
if: github.ref == 'refs/heads/main'|| github.ref == 'refs/heads/staging'
needs: publish
runs-on: ubuntu-latest
steps:
- name: Check out the repo
uses: actions/checkout@master
- name: Deploy to Staging Cluster
if: github.ref == 'refs/heads/staging'
uses: steebchen/[email protected]
with: # defaults to latest kubectl binary version
config: ${{ secrets.KUBE_CONFIG }}
command: rollout restart deployments/apigiv -n backend
- name: Verify Staging Deployment
if: github.ref == 'refs/heads/staging'
uses: steebchen/[email protected]
with:
config: ${{ secrets.KUBE_CONFIG }}
version: v1.24.2 # specify kubectl binary version explicitly
command: rollout status deployments/apigiv -n backend






0 comments on commit ecfd22a

Please sign in to comment.