Help us learn about your current experience with the documentation. Take the survey.
使用 Auto DevOps 部署到 EC2
要使用 Auto DevOps 部署到 EC2:
-
在您的
.gitlab-ci.yml文件中,引用Auto-Devops.gitlab-ci.yml模板。 -
为名为
build_artifact的build阶段定义一个作业。例如:# .gitlab-ci.yml include: - template: Auto-DevOps.gitlab-ci.yml variables: AUTO_DEVOPS_PLATFORM_TARGET: EC2 build_artifact: stage: build script: - <your build script goes here> artifacts: paths: - <built artifact>
有关此过程的视频教程,请查看 自动部署到 EC2。