From 8cb20b83ca5bff62b25bb1f84e298683e90b8860 Mon Sep 17 00:00:00 2001 From: Tanner Lewis Date: Wed, 18 Sep 2024 17:23:05 -0500 Subject: [PATCH] Debug entrypoint env Signed-off-by: Tanner Lewis --- Dockerfile | 2 ++ entrypoint.sh | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 0d9c9cc..3455746 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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"] diff --git a/entrypoint.sh b/entrypoint.sh index 5e95dcc..5aac397 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -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 }}" @@ -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}" \