From 780f7288c59ad875165574d80eab1b65cfa4507b Mon Sep 17 00:00:00 2001 From: andresanaya21 <alvaroandres.anayaamariles@telefonica.com> Date: Mon, 27 May 2024 11:48:30 +0200 Subject: [PATCH] ocf-deploy script staging --- capif/templates/cd-deploy-ocf.gitlab-ci.yml | 32 +++++++++------------ 1 file changed, 13 insertions(+), 19 deletions(-) diff --git a/capif/templates/cd-deploy-ocf.gitlab-ci.yml b/capif/templates/cd-deploy-ocf.gitlab-ci.yml index 664c8f3..556d233 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 \ -- GitLab