Skip to content

Commit cfd651f

Browse files
authored
adding deployment type
1 parent fe0944a commit cfd651f

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

action.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@ inputs:
1717
do_deployment_name:
1818
description: App deployment name.
1919
required: true
20+
do_deployment_type:
21+
description: App deployment type.
22+
required: false
23+
default: deployment
2024
do_namespace:
2125
description: App namespace name.
2226
required: false

entrypoint.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,4 @@ doctl kubernetes cluster kubeconfig save ${INPUT_DO_CLUSTER_CERTIFICATE}
2020

2121
echo "Kubectl deployment"
2222

23-
kubectl set image -n ${INPUT_DO_NAMESPACE} deployment/${INPUT_DO_DEPLOYMENT_NAME} ${INPUT_DO_CONTAINER_NAME}=${INPUT_DO_IMAGE_TAG}
23+
kubectl set image -n ${INPUT_DO_NAMESPACE} ${INPUT_DO_DEPLOYMENT_TYPE}/${INPUT_DO_DEPLOYMENT_NAME} ${INPUT_DO_CONTAINER_NAME}=${INPUT_DO_IMAGE_TAG}

0 commit comments

Comments
 (0)