Skip to content

Commit

Permalink
Add job to deploy to QA and Prod
Browse files Browse the repository at this point in the history
  • Loading branch information
shambhand committed Oct 17, 2024
1 parent ca21369 commit 41205a7
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 1 deletion.
32 changes: 31 additions & 1 deletion .github/workflows/ci.yaml → .github/workflows/ci-cd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ jobs:
name: helm-chart
path: devops-journey-0.1.0.tgz

deploy:
DEV-Deploy:
needs: build-and-push
runs-on: self-hosted # deploying to local k8s cluster
steps:
Expand All @@ -70,4 +70,34 @@ jobs:
run: |
helm upgrade --install devops-journey chart/devops-journey-0.1.0.tgz -n dev
echo "Deployed to dev successfully!!"
QA-Deploy:
needs: DEV-Deploy
runs-on: self-hosted # deploying to local k8s cluster
steps:
- name: Download Helm chart
uses: actions/download-artifact@v4
with:
name: helm-chart
path: chart/

- name: deploy-to-qa
run: |
helm upgrade --install devops-journey chart/devops-journey-0.1.0.tgz -n dev
echo "Deployed to QA successfully!!"
Prod-Deploy:
needs: QA-Deploy
runs-on: self-hosted # deploying to local k8s cluster
steps:
- name: Download Helm chart
uses: actions/download-artifact@v4
with:
name: helm-chart
path: chart/

- name: deploy-to-prod
run: |
helm upgrade --install devops-journey chart/devops-journey-0.1.0.tgz -n dev
echo "Deployed to Prod successfully!!"
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
*.crt
*.pem
/actions-runner/
.DS_Store

0 comments on commit 41205a7

Please sign in to comment.