update
This commit is contained in:
9
.github/workflows/cd.yml
vendored
9
.github/workflows/cd.yml
vendored
@@ -1,9 +1,16 @@
|
|||||||
# Continuous Deployment Workflow
|
# Continuous Deployment Workflow
|
||||||
# This workflow deploys your application to Kubernetes cluster
|
# This workflow deploys your application to Kubernetes cluster
|
||||||
|
# Trigger: After successful CI build or manual dispatch
|
||||||
|
|
||||||
name: CD - Deploy to Kubernetes
|
name: CD - Deploy to Kubernetes
|
||||||
|
|
||||||
on:
|
on:
|
||||||
|
workflow_run:
|
||||||
|
workflows: ["CI - Build and Push"]
|
||||||
|
types:
|
||||||
|
- completed
|
||||||
|
branches:
|
||||||
|
- dev
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
inputs:
|
inputs:
|
||||||
image_tag:
|
image_tag:
|
||||||
@@ -50,6 +57,8 @@ jobs:
|
|||||||
deploy:
|
deploy:
|
||||||
name: Deploy to Kubernetes
|
name: Deploy to Kubernetes
|
||||||
runs-on: ubuntu-latest
|
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:
|
steps:
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
|
|||||||
4
.github/workflows/ci.yml
vendored
4
.github/workflows/ci.yml
vendored
@@ -1,9 +1,13 @@
|
|||||||
# Continuous Integration Workflow
|
# Continuous Integration Workflow
|
||||||
# This workflow builds and pushes Docker images to your private registry
|
# This workflow builds and pushes Docker images to your private registry
|
||||||
|
# Trigger: Push to dev branch or manual dispatch
|
||||||
|
|
||||||
name: CI - Build and Push
|
name: CI - Build and Push
|
||||||
|
|
||||||
on:
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- dev
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
inputs:
|
inputs:
|
||||||
image_tag:
|
image_tag:
|
||||||
|
|||||||
Reference in New Issue
Block a user