1개 답변
- 최신
- 최다 투표
- 가장 많은 댓글
1
The most granular thing CodeDeploy can deploy is a build artifact. Think of an artifact as "a group of files that should be deployed to a single destination". So if you want to deploy only your "publicsite" files to S3 you'll need to define a separate build artifact that includes only those files.
I use this approach in my own projects when I want to deploy my web app to one server and my generated documentation to a different server, for example. Here's an example of how my documentation artifact is defined in the buildspec.yml:
artifacts:
files:
- '**/*'
base-directory: docs/user-guide
name: DocBuildOutput
답변함 2년 전
Thank you. Makes sense. I assume that means a build stage is required prior to define the more granular artifact?