Commit 9342bb2e authored by moha-s's avatar moha-s
Browse files

Update variables

parent 7a671720
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -347,3 +347,4 @@ Templating
auths
Kustomize
namespace
kubeconfig
 No newline at end of file
+1 −1
Original line number Diff line number Diff line
@@ -36,7 +36,7 @@ This job will deploy manifests to your cluster using Kustomize and set a new ima
| `KUSTOMIZATION_DIR` | the folder that contains the `kustomization.yaml` file | yes | ` `
| `NAMESPACE` | The namespace to use for deployment | yes | `$KUBE_NAMESPACE`
| `DEPLOYMENT_NAME` | name of deployment to use | yes | ` `
| `CONTAINER_NAME` | name of the containers to update | yes | ` `
| `POD_NAME` | name of the pods to update | yes | ` `
| `IMAGE_NAME` | name of the new image to use | yes | ` `
| `IMAGE_TAG` | the tag to use for the new image | yes | ` `
| `KUSTOMIZE_OPTIONS` | Additional options for `kubectl` command | no | ` `
+2 −2
Original line number Diff line number Diff line
@@ -12,7 +12,7 @@ kustomize_deploy:
    KUSTOMIZATION_DIR: ""
    NAMESPACE: "$KUBE_NAMESPACE"
    DEPLOYMENT_NAME: ""
    CONTAINER_NAME: ""
    POD_NAME: ""
    IMAGE_NAME: "$CI_REGISTRY_IMAGE"
    IMAGE_TAG: ""
    KUSTOMIZE_OPTIONS: ""
@@ -33,7 +33,7 @@ kustomize_deploy:
    # Set the current namespace
    - kubectl config set-context --current --namespace=$NAMESPACE
    # Set new image
    - kubectl set image deployment/$DEPLOYMENT_NAME ${CONTAINER_NAME}=${IMAGE_NAME}:${IMAGE_TAG} >> output.log
    - kubectl set image deployment/$DEPLOYMENT_NAME ${POD_NAME}=${IMAGE_NAME}:${IMAGE_TAG} >> output.log


  artifacts: