Skip to main content

이 버전의 GitHub Enterprise는 다음 날짜에 중단되었습니다. 2025-06-19. 중요한 보안 문제에 대해서도 패치 릴리스가 이루어지지 않습니다. 더 뛰어난 성능, 향상된 보안, 새로운 기능을 위해 최신 버전의 GitHub Enterprise Server로 업그레이드합니다. 업그레이드에 대한 도움말은 GitHub Enterprise 지원에 문의하세요.

Deploying to a specific environment

Specify a deployment environment in your workflow.

Prerequisites

You need to create an environment before you can use it in a workflow. See 배포 환경 관리.

Using an environment in a workflow

  1. Open the workflow file you want to edit.

  2. Use the following syntax to add a jobs.<job_id>.environment key to your workflow:

    YAML
    jobs:
      JOB-ID:
        environment: ENVIRONMENT-NAME
    

    The chosen job will now be subject to any rules configured for the specified environment.

  3. Optionally, specify a deployment URL for the environment using the following syntax:

    YAML
    jobs:
      JOB-ID:
        environment: ENVIRONMENT-NAME
        url: URL
    

    The specified URL will appear:

    • On the deployments page for the repository
    • In the visualization graph for the workflow run
    • (If a pull request triggers the workflow) As a "View deployment" button in the pull request timeline