Skip to content

Commit 8e6a09c

Browse files
committed
Clean up debug steps in cdk_release_code workflow
1 parent 7a38206 commit 8e6a09c

File tree

1 file changed

+2
-35
lines changed

1 file changed

+2
-35
lines changed

.github/workflows/cdk_release_code.yml

Lines changed: 2 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ jobs:
7777
with:
7878
name: build_artifact
7979

80-
- name: extract build_artifact
80+
- name: Extract build_artifact
8181
run: |
8282
mkdir -p .build
8383
tar -xf artifact.tar -C .build
@@ -118,25 +118,7 @@ jobs:
118118
SLACK_BOT_TOKEN: "${{ secrets.SLACK_BOT_TOKEN }}"
119119
SLACK_SIGNING_SECRET: "${{ secrets.SLACK_SIGNING_SECRET }}"
120120

121-
- name: Show final .build/cdk.json
122-
run: |
123-
echo "----- .build/cdk.json -----"
124-
jq . .build/cdk.json
125-
126-
- name: Debug AWS credentials inside Docker container
127-
run: |
128-
docker run --rm \
129-
-e AWS_ACCESS_KEY_ID=${{ steps.connect-aws.outputs.aws-access-key-id }} \
130-
-e AWS_SECRET_ACCESS_KEY=${{ steps.connect-aws.outputs.aws-secret-access-key }} \
131-
-e AWS_SESSION_TOKEN=${{ steps.connect-aws.outputs.aws-session-token }} \
132-
amazonlinux:2 \
133-
bash -c '
134-
echo "AWS_ACCESS_KEY_ID=$AWS_ACCESS_KEY_ID" | tee -a /github-step-summary
135-
echo "AWS_SECRET_ACCESS_KEY=${AWS_SECRET_ACCESS_KEY:0:4}***" | tee -a /github-step-summary
136-
echo "AWS_SESSION_TOKEN=${AWS_SESSION_TOKEN:0:8}***" | tee -a /github-step-summary
137-
'
138-
139-
- name: Bundle Lambda Functions (manual)
121+
- name: Package Lambda Functions with Python Dependencies
140122
run: |
141123
# SlackBotFunction
142124
mkdir -p .build/${{ inputs.STACK_NAME }}-SlackBotFunction
@@ -148,21 +130,6 @@ jobs:
148130
pip3 install -r .build/packages/createIndexFunction/requirements.txt -t .build/${{ inputs.STACK_NAME }}-CreateIndexFunction
149131
cp -r .build/packages/createIndexFunction/* .build/${{ inputs.STACK_NAME }}-CreateIndexFunction/
150132

151-
- name: Debug container filesystem layout
152-
run: |
153-
docker run --rm \
154-
-v "$(pwd)":/home/cdkuser/workspace \
155-
-w /home/cdkuser/workspace \
156-
ubuntu \
157-
bash -c '
158-
echo "Working dir: $(pwd)"
159-
echo "CDK app path:"; ls -l packages/cdk/bin/
160-
echo "Lambda bundles:"
161-
ls -l .build/
162-
ls -l .build/${{ inputs.STACK_NAME }}-SlackBotFunction || true
163-
ls -l .build/${{ inputs.STACK_NAME }}-CreateIndexFunction || true
164-
'
165-
166133
- name: Create version.txt for CDK tooling
167134
run: echo "${{ inputs.VERSION_NUMBER }}" > version.txt
168135

0 commit comments

Comments
 (0)