Skip to content

Commit

Permalink
Debug entrypoint env
Browse files Browse the repository at this point in the history
Signed-off-by: Tanner Lewis <lewijacn@amazon.com>
  • Loading branch information
lewijacn committed Sep 18, 2024
1 parent cafc1e4 commit 8cb20b8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,6 @@ WORKDIR /webhook-trigger
RUN python3 -m pip install --upgrade pipenv
RUN pipenv install --deploy

RUN chmod +x entrypoint.sh

CMD ["./entrypoint.sh"]
3 changes: 2 additions & 1 deletion entrypoint.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#!/bin/bash

printenv
pipenv run pip list

if [[ "${GITHUB_EVENT_NAME}" == "pull_request" ]]; then
branch_name="${{ github.event.pull_request.head.ref }}"
Expand All @@ -15,6 +14,8 @@ pr_repo_url="https://github.com/${GITHUB_REPOSITORY}.git"

cd /webhook-trigger || exit
echo "Running jenkins test on repo: $pr_repo_url and branch: $branch_name"
pipenv run pip list
ls
pipenv run python3 default_webhook_trigger.py \
--jenkins_url="${INPUT_JENKINS_URL}" \
--pipeline_token="${INPUT_API_TOKEN}" \
Expand Down

0 comments on commit 8cb20b8

Please sign in to comment.