diff --git a/capif/templates/cd-deploy-ocf.gitlab-ci.yml b/capif/templates/cd-deploy-ocf.gitlab-ci.yml index 664c8f33f7b10c15908f1b999a0177d3551e8617..556d233a44d692d044d3b2101c3c1c51d8d1d436 100644 --- a/capif/templates/cd-deploy-ocf.gitlab-ci.yml +++ b/capif/templates/cd-deploy-ocf.gitlab-ci.yml @@ -56,25 +56,19 @@ deploy_ocf_staging: # when: never # - if: $CI_COMMIT_BRANCH == "staging" script: -# - echo "### git clone OCF repo ###" -# - 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 -# - sudo ./get_helm.sh - - whoami - - helm version - - kubectl version --output=yaml - - echo "### setting kubeconfig###" - - whoami - - kubectl cluster-info - - yq --version - - ls -rtt helm/capif - - cat 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 + - | + helm version + kubectl version --output=yaml + echo "### setting kubeconfig###" + whoami + kubectl cluster-info + yq --version + ls -rtt helm/capif + cat 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 upgrade --install -n NAMESPACE_DEV ocf-staging helm/capif/ --set nginx.nginx.env.capifHostname=capif-$CI_ENVIRONMENT_SLUG.$DOMAIN_STAGING \ --set nginx.nginx.env.registerHostname=register-$CI_ENVIRONMENT_SLUG.$DOMAIN_STAGING \