GitLab CI/CD 1 · Deploy and reuse

Deploy to an environment

Track deployments and their URL in GitLab.

deploy-prod:
  stage: deploy
  environment:
    name: production
    url: https://www.example.com
  script:
    - ./deploy.sh

Official GitLab CI/CD 1 documentation

More deploy and reuse commands

All deploy and reuse commands · GitLab CI/CD 1 cheatsheet

Was this page helpful?