1 Risposta
- Più recenti
- Maggior numero di voti
- Maggior numero di commenti
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
con risposta 2 anni fa
Contenuto pertinente
- AWS UFFICIALEAggiornata un anno fa
- AWS UFFICIALEAggiornata un anno fa
- AWS UFFICIALEAggiornata 3 anni fa
Thank you. Makes sense. I assume that means a build stage is required prior to define the more granular artifact?