33 lines
685 B
YAML
33 lines
685 B
YAML
name: Build and Deploy
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v3
|
|
|
|
- name: Set up Buildx
|
|
uses: docker/setup-buildx-action@v2
|
|
|
|
- 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: |
|
|
helm upgrade --install cloudforge ./helm \
|
|
--set backend.image.tag=${{ github.sha }} \
|
|
-n cloudforge
|