This commit is contained in:
@@ -13,18 +13,20 @@ jobs:
|
|||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
- name: Build Docker Image
|
- name: Set up Buildx
|
||||||
run: |
|
uses: docker/setup-buildx-action@v2
|
||||||
docker build -t cloudforge-dashboard-backend:latest .
|
|
||||||
docker tag cloudforge-dashboard-backend:latest cloudforge-dashboard-backend:${{ github.sha }}
|
|
||||||
|
|
||||||
- name: Deploy to K3S
|
- 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: Deploy
|
||||||
run: |
|
run: |
|
||||||
helm upgrade --install cloudforge ./cloudforge-dashboard-helm \
|
helm upgrade --install cloudforge ./helm \
|
||||||
--set backend.image.tag=${{ github.sha }} \
|
--set backend.image.tag=${{ github.sha }} \
|
||||||
-n cloudforge \
|
-n cloudforge
|
||||||
--create-namespace
|
|
||||||
|
|
||||||
- name: Verify Deployment
|
|
||||||
run: |
|
|
||||||
kubectl rollout status deployment/dashboard-backend -n cloudforge
|
|
||||||
|
|||||||
Reference in New Issue
Block a user