Skip to content

Commit 0594a3a

Browse files
committed
add deploy namespace
1 parent 2769466 commit 0594a3a

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

.github/workflows/build-push-deploy.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@ on:
99
description: "The backend environment we are building for (API calls are pointed to). This should be one of (development, staging, production)."
1010
type: string
1111
required: true
12+
deploy-namespace:
13+
description: "The Kubernetes namespace to deploy the service to."
14+
type: string
15+
required: false
1216
docker-build-args:
1317
description: "Extra args passed to 'docker build'."
1418
type: string
@@ -63,6 +67,8 @@ jobs:
6367
AWS_REGION: us-east-1
6468
steps:
6569
- uses: actions/checkout@v4
70+
with:
71+
ref: ${{ inputs.docker-image-ref }}
6672
# Build via docker-bake if a bakefile is specified
6773
- if: ${{ contains(matrix.dockerfile, '.hcl') }}
6874
uses: mindsdb/github-actions/docker-bake@main
@@ -114,7 +120,7 @@ jobs:
114120
# Do the actual deployment
115121
with:
116122
environment-slug: ${{matrix.deploy-env}}
117-
k8s-namespace: ${{matrix.deploy-env}}
123+
k8s-namespace: ${{inputs.deploy-namespace || matrix.deploy-env}}
118124
image-tag: ${{ inputs.stage-name }}-${{ github.sha }}
119125
timeout: 600s
120126
# We need to wait till deployment is finished here, since the calling workflow might test the deployment env once this job is done

0 commit comments

Comments
 (0)