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

CD_ENV_NAME

parent b6dd0ccd
Loading
Loading
Loading
Loading
+5 −3
Original line number Diff line number Diff line
@@ -357,9 +357,11 @@ prep_ocf_cd_dev:
  script:
    - |
      echo "### filtering name ###"
      echo $CI_ENVIRONMENT_SLUG
      echo $CI_ENVIRONMENT_SLUG | rev | cut -c 1-6 | rev
      echo $(echo $CI_ENVIRONMENT_SLUG | rev | cut -c 1-6 | rev) > cd_env_endpoint.txt
      echo $CI_COMMIT_REF_SLUG
      CD_ENV_NAME=${CI_COMMIT_REF_SLUG//-/}
      echo $CD_ENV_NAME
      echo $CD_ENV_NAME | rev | cut -c 1-6 | rev
      echo $(echo $CD_ENV_NAME | rev | cut -c 1-6 | rev) > cd_env_endpoint.txt
  artifacts:
    paths:
      - cd_env_endpoint.txt