Commit a5e9adb1 authored by Andres Anaya Amariels's avatar Andres Anaya Amariels 🚀
Browse files

kubectl staging

parent 5bbc88ab
Loading
Loading
Loading
Loading
+10 −9
Original line number Diff line number Diff line
@@ -56,15 +56,16 @@ deploy_ocf_staging:
#    - git clone https://oauth2:${CI_JOB_TOKEN}@labs.etsi.org/rep/ocf/capif.git
    - echo "### install helm###"
    - curl -fsSL -o get_helm.sh https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3
#    - chmod 700 get_helm.sh
#    - ./get_helm.sh
#    - helm version
#    - echo "### install kubectl###" 
#    - curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl"
#    - chmod +x kubectl
#    - sudo mv kubectl /usr/local/bin
#    - kubectl version --output=yaml
#    - echo "### setting kubeconfig###"
    - chmod 700 get_helm.sh
    - ./get_helm.sh
    - helm version
    - echo "### install kubectl###" 
    - curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl"
    - chmod +x kubectl
    - sudo mv kubectl /usr/local/bin
    - kubectl version --output=yaml
    - echo "### setting kubeconfig###"
    - kubectl cluster-info
#    - echo $KUBECONFIG | base64 -d > ~/cluster.kubeconfig
#    - kubectl get nodes --kubeconfig ~/cluster.kubeconfig
#    - kubectl cluster-info --kubeconfig ~/cluster.kubeconfig #comment that when is working