EC2에 배포하기 위해 Auto DevOps 사용하기
EC2에 배포하기 위해 Auto DevOps를 사용하려면:
-
.gitlab-ci.yml
파일에서Auto-Devops.gitlab-ci.yml
템플릿을 참조합니다. -
build
단계에 대해build_artifact
라는 이름의 작업을 정의합니다. 예를 들어:# .gitlab-ci.yml include: - template: Auto-Dev-ops.gitlab-ci.yml variables: AUTO_DEVOPS_PLATFORM_TARGET: EC2 build_artifact: stage: build script: - <your build script goes here> artifacts: paths: - <built artifact>
이 과정에 대한 동영상 안내를 보려면 Auto Deploy to EC2를 클릭하세요.