diff --git a/Dockerfile b/Dockerfile index a157c8d..152356e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,10 +1,10 @@ FROM alpine:3.11 -ARG KUBECTL_VERSION="1.14.6" +ARG KUBECTL_VERSION="1.15.10" RUN apk add py-pip curl RUN pip install awscli -RUN curl -L -o /usr/bin/kubectl https://amazon-eks.s3-us-west-2.amazonaws.com/1.14.6/2019-08-22/bin/linux/amd64/kubectl +RUN curl -L -o /usr/bin/kubectl https://amazon-eks.s3.us-west-2.amazonaws.com/1.15.10/2020-02-22/bin/linux/amd64/kubectl RUN chmod +x /usr/bin/kubectl COPY entrypoint.sh /entrypoint.sh diff --git a/entrypoint.sh b/entrypoint.sh index 8ae3860..175185d 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -4,6 +4,7 @@ echo ${KUBE_CONFIG_DATA} | base64 -d > kubeconfig export KUBECONFIG=kubeconfig result="$(kubectl $1)" + status=$? echo ::set-output name=result::$result echo "$result"