File tree Expand file tree Collapse file tree 4 files changed +13
-6
lines changed
Expand file tree Collapse file tree 4 files changed +13
-6
lines changed Original file line number Diff line number Diff line change @@ -3,6 +3,9 @@ name: cdk package code
33on :
44 workflow_call :
55 inputs :
6+ STACK_NAME :
7+ required : true
8+ type : string
69 VERSION_NUMBER :
710 required : true
811 type : string
@@ -58,18 +61,19 @@ jobs:
5861
5962 - name : Build Python Lambda Functions
6063 run : |
61- mkdir -p packages/slackBotFunction/ build
62- pip3 install -r packages/slackBotFunction/requirements.txt -t packages/slackBotFunction/ build
63- rsync -a --exclude=build packages/slackBotFunction/ packages/slackBotFunction/ build/
64+ mkdir -p . build/${{ inputs.STACK_NAME }}-SlackBotFunction
65+ pip3 install -r packages/slackBotFunction/requirements.txt -t . build/${{ inputs.STACK_NAME }}-SlackBotFunction
66+ cp -r packages/slackBotFunction/* . build/${{ inputs.STACK_NAME }}-SlackBotFunction
6467
65- mkdir -p packages/createIndexFunction/ build
66- pip3 install -r packages/createIndexFunction/requirements.txt -t packages/createIndexFunction/ build
67- rsync -a --exclude=build packages/createIndexFunction/ packages/createIndexFunction/ build/
68+ mkdir -p . build/${{ inputs.STACK_NAME }}-CreateIndexFunction
69+ pip3 install -r packages/createIndexFunction/requirements.txt -t . build/${{ inputs.STACK_NAME }}-CreateIndexFunction
70+ cp -r packages/createIndexFunction/* . build/${{ inputs.STACK_NAME }}-CreateIndexFunction
6871
6972 - name : ' Tar files'
7073 run : |
7174 tar -rf artifact.tar \
7275 .tool-versions \
76+ .build \
7377 packages \
7478 node_modules \
7579 package.json \
Original file line number Diff line number Diff line change 9898 needs : [get_commit_id, tag_release]
9999 uses : ./.github/workflows/cdk_package_code.yml
100100 with :
101+ STACK_NAME : epsam
101102 VERSION_NUMBER : ${{ needs.tag_release.outputs.version_tag }}
102103 COMMIT_ID : ${{ needs.get_commit_id.outputs.commit_id }}
103104
Original file line number Diff line number Diff line change 5656 needs : [get_issue_number, get_commit_id]
5757 uses : ./.github/workflows/cdk_package_code.yml
5858 with :
59+ STACK_NAME : epsam-pr-${{needs.get_issue_number.outputs.issue_number}}
5960 VERSION_NUMBER : PR-${{ needs.get_issue_number.outputs.issue_number }}
6061 COMMIT_ID : ${{ needs.get_commit_id.outputs.commit_id }}
6162
Original file line number Diff line number Diff line change @@ -117,6 +117,7 @@ jobs:
117117 needs : [get_commit_id, tag_release]
118118 uses : ./.github/workflows/cdk_package_code.yml
119119 with :
120+ STACK_NAME : epsam
120121 VERSION_NUMBER : ${{ needs.tag_release.outputs.version_tag }}
121122 COMMIT_ID : ${{ needs.get_commit_id.outputs.commit_id }}
122123
You can’t perform that action at this time.
0 commit comments