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

helm command

parent c4d0b311
Loading
Loading
Loading
Loading
+17 −15
Original line number Diff line number Diff line
@@ -122,19 +122,22 @@ deploy_ocf_dev:
#      when: never      
#    - if: $CI_COMMIT_BRANCH
  script:
    - helm version
    - kubectl version --output=yaml
    - echo "### setting kubeconfig###"
    - kubectl cluster-info
    - yq --version
    - cat helm/capif/Chart.yaml
    - yq e -i ".appVersion = \"$IMAGE_TAG_DEV\"" helm/capif/Chart.yaml
    - cat helm/capif/Chart.yaml
    - echo "### download dependencies###"
    - helm dependency build helm/capif
    - echo "### updating capif###"
    - helm uninstall -n $NAMESPACE_DEV ocf-developer || true
    - helm upgrade --install -n $NAMESPACE_DEV ocf-developer helm/capif/ --set nginx.nginx.env.capifHostname=capif-$CI_ENVIRONMENT_SLUG.$DOMAIN_DEV --set nginx.nginx.env.registerHostname=register-$CI_ENVIRONMENT_SLUG.$DOMAIN_DEV \
    - |
      helm version
      kubectl version --output=yaml
      echo "### setting kubeconfig###"
      kubectl cluster-info
      yq --version
      cat helm/capif/Chart.yaml
      yq e -i ".appVersion = \"$IMAGE_TAG_DEV\"" helm/capif/Chart.yaml
      cat helm/capif/Chart.yaml
      echo "### download dependencies###"
      helm dependency build helm/capif
      echo "### updating capif###"
      helm uninstall -n $NAMESPACE_DEV ocf-developer || true
      helm upgrade --install -n $NAMESPACE_DEV ocf-developer helm/capif/ \
      --set nginx.nginx.env.capifHostname=capif-$CI_ENVIRONMENT_SLUG.$DOMAIN_DEV \
      --set nginx.nginx.env.registerHostname=register-$CI_ENVIRONMENT_SLUG.$DOMAIN_DEV \
      --set monitoring.grafana.ingress.hosts[0].host="grafana-$CI_ENVIRONMENT_SLUG.$DOMAIN_PROD" \
      --set monitoring.grafana.ingress.hosts[0].paths[0].path="/" \
      --set monitoring.grafana.ingress.hosts[0].paths[0].pathType="Prefix" \
@@ -144,8 +147,7 @@ deploy_ocf_dev:
      --set parametersVault.env.vaultPort=$VAULT_PORT \
      --set parametersVault.env.vaultAccessToken=$VAULT_ACCESS_TOKEN \
      --set ingress.ip=10.43.107.132 \
      --wait --timeout=10m \
      --create-namespace
      --wait --timeout=10m --create-namespace

delete_ocf_dev:
  stage: delete_ocf_dev