This commit is contained in:
@@ -10,21 +10,23 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v3
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Build Docker Image
|
||||
run: |
|
||||
docker build -t cloudforge-dashboard-backend:latest .
|
||||
docker tag cloudforge-dashboard-backend:latest cloudforge-dashboard-backend:${{ github.sha }}
|
||||
- name: Set up Buildx
|
||||
uses: docker/setup-buildx-action@v2
|
||||
|
||||
- name: Deploy to K3S
|
||||
run: |
|
||||
helm upgrade --install cloudforge ./cloudforge-dashboard-helm \
|
||||
--set backend.image.tag=${{ github.sha }} \
|
||||
-n cloudforge \
|
||||
--create-namespace
|
||||
- name: Build and Push
|
||||
uses: docker/build-push-action@v4
|
||||
with:
|
||||
context: .
|
||||
push: true
|
||||
tags: |
|
||||
localhost:5000/cloudforge-dashboard-backend:${{ github.sha }}
|
||||
localhost:5000/cloudforge-dashboard-backend:latest
|
||||
|
||||
- name: Verify Deployment
|
||||
run: |
|
||||
kubectl rollout status deployment/dashboard-backend -n cloudforge
|
||||
- name: Deploy
|
||||
run: |
|
||||
helm upgrade --install cloudforge ./helm \
|
||||
--set backend.image.tag=${{ github.sha }} \
|
||||
-n cloudforge
|
||||
|
||||
Reference in New Issue
Block a user