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

deploy ocf commented

parent 545d6bac
Loading
Loading
Loading
Loading
+46 −46
Original line number Diff line number Diff line
@@ -53,29 +53,29 @@ deploy_ocf_staging:
    - sudo mv kubectl /usr/local/bin
    - kubectl version --output=yaml
    - echo "### setting kubeconfig###"
    - echo $KUBECONFIG | base64 -d > ~/cluster.kubeconfig
    - kubectl get nodes --kubeconfig ~/cluster.kubeconfig
    - kubectl cluster-info --kubeconfig ~/cluster.kubeconfig #comment that when is working
    - echo "### install yq###"
    - sudo wget -qO /usr/local/bin/yq https://github.com/mikefarah/yq/releases/latest/download/yq_linux_amd64
    - sudo chmod a+x /usr/local/bin/yq
    - yq --version
    - yq e -i '.version = "$IMAGE_TAG_STAGING"' helm/capif/Chart.yaml
    - yq e -i '.appVersion = "$IMAGE_TAG_STAGING"' helm/capif/Chart.yaml
    - cat helm/capif/Chart.yaml
    - echo "### download dependencies###"
    - helm dependency build helm/capif
    - echo "### updating capif###"
    - helm uninstall -n $NAMESPACE_STAGING ocf --kubeconfig ~/cluster.kubeconfig || true
    - helm upgrade --install -n $NAMESPACE_STAGING ocf helm/capif/ \
      --set nginx.nginx.env.capifHostname=capif.$DOMAIN_STAGING \
      --set ingress_ip.oneke="$INGRESS" --atomic \
      --set monitoring.prometheus.enable="" \
      --set monitoring.grafana.ingress.hosts[0].host="grafana.$DOMAIN_STAGING" \
      --set monitoring.grafana.ingress.hosts[0].paths[0].path="/" \
      --set monitoring.grafana.ingress.hosts[0].paths[0].pathType="Prefix" \
      --wait --timeout=10m \
      --create-NAMESPACE_STAGING --kubeconfig ~/cluster.kubeconfig
#    - echo $KUBECONFIG | base64 -d > ~/cluster.kubeconfig
#    - kubectl get nodes --kubeconfig ~/cluster.kubeconfig
#    - kubectl cluster-info --kubeconfig ~/cluster.kubeconfig #comment that when is working
#    - echo "### install yq###"
#    - sudo wget -qO /usr/local/bin/yq https://github.com/mikefarah/yq/releases/latest/download/yq_linux_amd64
#    - sudo chmod a+x /usr/local/bin/yq
#    - yq --version
#    - yq e -i '.version = "$IMAGE_TAG_STAGING"' helm/capif/Chart.yaml
#    - yq e -i '.appVersion = "$IMAGE_TAG_STAGING"' helm/capif/Chart.yaml
#    - cat helm/capif/Chart.yaml
#    - echo "### download dependencies###"
#    - helm dependency build helm/capif
#    - echo "### updating capif###"
#    - helm uninstall -n $NAMESPACE_STAGING ocf --kubeconfig ~/cluster.kubeconfig || true
#    - helm upgrade --install -n $NAMESPACE_STAGING ocf helm/capif/ \
#      --set nginx.nginx.env.capifHostname=capif.$DOMAIN_STAGING \
#      --set ingress_ip.oneke="$INGRESS" --atomic \
#      --set monitoring.prometheus.enable="" \
#      --set monitoring.grafana.ingress.hosts[0].host="grafana.$DOMAIN_STAGING" \
#      --set monitoring.grafana.ingress.hosts[0].paths[0].path="/" \
#      --set monitoring.grafana.ingress.hosts[0].paths[0].pathType="Prefix" \
#      --wait --timeout=10m \
#      --create-NAMESPACE_STAGING --kubeconfig ~/cluster.kubeconfig


delete_ocf_staging:
@@ -118,26 +118,26 @@ deploy_ocf_dev:
    - sudo mv kubectl /usr/local/bin
    - kubectl version --output=yaml
    - echo "### setting kubeconfig###"
    - echo $KUBECONFIG | base64 -d > ~/cluster.kubeconfig
    - kubectl get nodes --kubeconfig ~/cluster.kubeconfig
    - kubectl cluster-info --kubeconfig ~/cluster.kubeconfig #comment that when is working
    - echo "### install yq###"
    - sudo wget -qO /usr/local/bin/yq https://github.com/mikefarah/yq/releases/latest/download/yq_linux_amd64
    - sudo chmod a+x /usr/local/bin/yq
    - yq --version
    - yq e -i '.version = "$IMAGE_TAG_STAGING"' helm/capif/Chart.yaml
    - yq e -i '.appVersion = "$IMAGE_TAG_STAGING"' helm/capif/Chart.yaml
    - cat helm/capif/Chart.yaml
    - echo "### download dependencies###"
    - helm dependency build helm/capif
    - echo "### updating capif###"
    - helm uninstall -n $NAMESPACE_STAGING ocf --kubeconfig ~/cluster.kubeconfig || true
    - helm upgrade --install -n $NAMESPACE_STAGING ocf helm/capif/ \
      --set nginx.nginx.env.capifHostname=capif.$DOMAIN_STAGING \
      --set ingress_ip.oneke="$INGRESS" --atomic \
      --set monitoring.prometheus.enable="" \
      --set monitoring.grafana.ingress.hosts[0].host="grafana.$DOMAIN_STAGING" \
      --set monitoring.grafana.ingress.hosts[0].paths[0].path="/" \
      --set monitoring.grafana.ingress.hosts[0].paths[0].pathType="Prefix" \
      --wait --timeout=10m \
      --create-NAMESPACE_STAGING --kubeconfig ~/cluster.kubeconfig
 No newline at end of file
#    - echo $KUBECONFIG | base64 -d > ~/cluster.kubeconfig
#    - kubectl get nodes --kubeconfig ~/cluster.kubeconfig
#    - kubectl cluster-info --kubeconfig ~/cluster.kubeconfig #comment that when is working
#    - echo "### install yq###"
#    - sudo wget -qO /usr/local/bin/yq https://github.com/mikefarah/yq/releases/latest/download/yq_linux_amd64
#    - sudo chmod a+x /usr/local/bin/yq
#    - yq --version
#    - yq e -i '.version = "$IMAGE_TAG_STAGING"' helm/capif/Chart.yaml
#    - yq e -i '.appVersion = "$IMAGE_TAG_STAGING"' helm/capif/Chart.yaml
#    - cat helm/capif/Chart.yaml
#    - echo "### download dependencies###"
#    - helm dependency build helm/capif
#    - echo "### updating capif###"
#    - helm uninstall -n $NAMESPACE_STAGING ocf --kubeconfig ~/cluster.kubeconfig || true
#    - helm upgrade --install -n $NAMESPACE_STAGING ocf helm/capif/ \
#      --set nginx.nginx.env.capifHostname=capif.$DOMAIN_STAGING \
#      --set ingress_ip.oneke="$INGRESS" --atomic \
#      --set monitoring.prometheus.enable="" \
#      --set monitoring.grafana.ingress.hosts[0].host="grafana.$DOMAIN_STAGING" \
#      --set monitoring.grafana.ingress.hosts[0].paths[0].path="/" \
#      --set monitoring.grafana.ingress.hosts[0].paths[0].pathType="Prefix" \
#      --wait --timeout=10m \
#      --create-NAMESPACE_STAGING --kubeconfig ~/cluster.kubeconfig
 No newline at end of file