1 Respuesta
- Más nuevo
- Más votos
- Más comentarios
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
respondido hace 2 años
Contenido relevante
- OFICIAL DE AWSActualizada hace 3 años
- OFICIAL DE AWSActualizada hace 3 años
- OFICIAL DE AWSActualizada hace 2 años
Thank you. Makes sense. I assume that means a build stage is required prior to define the more granular artifact?