CI_ENVIRONMENT_NAME:
CI_ENVIRONMENT_SLUG:
CI_ENVIRONMENT_URL:
CI_ENVIRONMENT_ACTION:
CI_ENVIRONMENT_TIER:
stages:
- deploy
deploy_staging:
stage: deploy
script:
- echo "Deploying to staging environment..."
- export ENV_NAME="Staging"
- export ENV_SLUG=$(echo $ENV_NAME | tr '[:upper:]' '[:lower:]' | sed 's/ /-/g')
- export ENV_URL="https://staging.example.com"
- export ENV_ACTION="deploy"
- export ENV_TIER="staging"
- echo "CI_ENVIRONMENT_NAME: $ENV_NAME"
- echo "CI_ENVIRONMENT_SLUG: $ENV_SLUG"
- echo "CI_ENVIRONMENT_URL: $ENV_URL"
- echo "CI_ENVIRONMENT_ACTION: $ENV_ACTION"
- echo "CI_ENVIRONMENT_TIER: $ENV_TIER"