Skip to content

Commit

Permalink
reuse deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
lnart committed Apr 23, 2024
1 parent d369568 commit 2c1b392
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 3 deletions.
16 changes: 13 additions & 3 deletions .github/workflows/deploy-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,16 @@ name: Deploy image in Kubernetes Cluster

on:
workflow_call:
inputs:
deployment:
type: string
required: true
service:
type: string
required: true
ingress:
type: string
required: true

jobs:
push-staging:
Expand All @@ -25,8 +35,8 @@ jobs:
strategy: basic
namespace: lennart
manifests: |
kubernetes/blueDeployment.yml
kubernetes/blueService.yml
kubernetes/ingress.yml
${{inputs.deployment}}
${{inputs.service}}
${{inputs.ingress}}
images: |
lnart/dryager-backend:${{ github.sha }}
4 changes: 4 additions & 0 deletions .github/workflows/push-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,8 @@ jobs:
push-staging:
needs: [integrate, build-image]
uses: ./.github/workflows/deploy-image.yml
with:
deployment: kubernetes/blueDeployment.yml
service: kubernetes/blueService.yml
ingress: kubernetes/ingress.yml
secrets: inherit

0 comments on commit 2c1b392

Please sign in to comment.