Loading capif/templates/cd-deploy-ocf.gitlab-ci.yml +13 −19 Original line number Diff line number Diff line Loading @@ -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 \ Loading Loading
capif/templates/cd-deploy-ocf.gitlab-ci.yml +13 −19 Original line number Diff line number Diff line Loading @@ -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 \ Loading