Skip to content

Commit

Permalink
Fix artifact publish
Browse files Browse the repository at this point in the history
  • Loading branch information
Greg Chagnon committed Nov 15, 2024
1 parent f57856d commit 4d8f601
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,10 @@ def write_buildspec(self, project_dir: str):
artifacts:
files:
- '**/*'
- 'imageDetail_*.json'
secondary-artifacts:
imageDetail:
files:
- 'imageDetail_*.json'
base-directory: .
env:
variables:
Expand Down
7 changes: 5 additions & 2 deletions toolkit-service-lambda/pipeline/aws_code_pipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,11 +113,14 @@ def create_pipeline(self, service_info: dict, scm_info: dict):
'TemplatePath': 'BuildOutput::infra/infra.yaml',
'Capabilities': 'CAPABILITY_IAM',
'ParameterOverrides': json.dumps({
'ImageUri.$': "$.BuildOutput.imageUri"
'ImageUri.$': '$.imageUri'
}),
'RoleArn': os.environ['CODEPIPELINE_ROLE_ARN']
},
'inputArtifacts': [{'name': 'BuildOutput'}],
'inputArtifacts': [
{'name': 'BuildOutput'},
{'name': 'imageDetail'}
],
'runOrder': 1
}
]
Expand Down

0 comments on commit 4d8f601

Please sign in to comment.