Skip to content
Snippets Groups Projects
Commit 780f7288 authored by Andres Anaya Amariels's avatar Andres Anaya Amariels :rocket:
Browse files

ocf-deploy script staging

parent a330333c
No related branches found
No related tags found
No related merge requests found
......@@ -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 \
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment