1 réponse
- Le plus récent
- Le plus de votes
- La plupart des commentaires
1
Another potential way is using variables in CodePipeline. We need to export variables in CodeBuild BuildSpec, then access the variables in later stages. For example, create a CodeBuild project with exported-variables
const codeBuildProject = new codebuild.PipelineProject({
buildSpec: aws_codebuild.BuildSpec.fromObject({
...
env: {
// save the imageTag environment variable as a CodePipeline Variable
'exported-variables': [
'imageTag',
],
}
})
})
CodeBuild action
const codeBuildAction = new codepipeline_actions.CodeBuildAction({
actionName: 'CodeBuildActionName',
project: codeBuildProject,
input: sourceOutput,
});
then access this variable in Deploy stage
codeBuidlAction.variable('imageTag')
répondu il y a 2 ans
Contenus pertinents
- demandé il y a un an
- demandé il y a un an
- demandé il y a un an
- AWS OFFICIELA mis à jour il y a 3 ans
- AWS OFFICIELA mis à jour il y a 10 mois
- AWS OFFICIELA mis à jour il y a 2 ans