This commit is contained in:
2025-10-05 20:28:36 +08:00
parent 7ae3f01467
commit dd1a14f0d4
2 changed files with 13 additions and 0 deletions

View File

@@ -1,9 +1,16 @@
# Continuous Deployment Workflow
# This workflow deploys your application to Kubernetes cluster
# Trigger: After successful CI build or manual dispatch
name: CD - Deploy to Kubernetes
on:
workflow_run:
workflows: ["CI - Build and Push"]
types:
- completed
branches:
- dev
workflow_dispatch:
inputs:
image_tag:
@@ -50,6 +57,8 @@ jobs:
deploy:
name: Deploy to Kubernetes
runs-on: ubuntu-latest
# Only run if CI workflow succeeded (for workflow_run trigger)
if: ${{ github.event.workflow_run.conclusion == 'success' || github.event_name == 'workflow_dispatch' }}
steps:
- name: Checkout code

View File

@@ -1,9 +1,13 @@
# Continuous Integration Workflow
# This workflow builds and pushes Docker images to your private registry
# Trigger: Push to dev branch or manual dispatch
name: CI - Build and Push
on:
push:
branches:
- dev
workflow_dispatch:
inputs:
image_tag: