Skip to content

Commit

Permalink
Update the workflow for deploy to dev
Browse files Browse the repository at this point in the history
  • Loading branch information
shambhand committed Oct 17, 2024
1 parent 57573e1 commit 58182b9
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 4 deletions.
22 changes: 19 additions & 3 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ on:
branches: [ main ]

jobs:

test:
runs-on: ubuntu-latest
steps:
Expand Down Expand Up @@ -40,7 +41,6 @@ jobs:
run: |
docker push ${{ secrets.DOCKERHUB_USERNAME }}/devops-journey:latest
- name: Set up Helm
uses: azure/setup-helm@v3
with:
Expand All @@ -51,7 +51,23 @@ jobs:
helm package ./helm-chart
- name: Upload Helm chart as artifact
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: devops-journey-chart
path: devops-journey-*.tgz

deploy:
needs: build-and-push
runs-on: self-hosted # deploying to local k8s cluster
steps:
- name: Download Helm chart
uses: actions/download-artifact@v4
with:
name: helm-chart
path: devops-journey-*.tgz
path: ./

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

0 comments on commit 58182b9

Please sign in to comment.