Skip to content

Commit 91faae0

Browse files
committed
debug in bash container
1 parent 7a7b087 commit 91faae0

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

.github/workflows/zhook.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,12 +80,13 @@ jobs:
8080
EOF
8181
8282
docker build -t zhook-action .
83+
docker build -t zhook-action-dbg -f debug.Dockerfile .
8384
docker run --rm \
8485
-v "${{ github.workspace }}:${{ github.workspace }}" \
8586
-w "${{ github.workspace }}" \
8687
--env-file /tmp/docker.env \
87-
--entrypoint /bin/sh \
88-
zhook-action -xc "
88+
--entrypoint /bin/bash \
89+
zhook-action-dbg -xc "
8990
ulimit -c unlimited
9091
exec /app/zhook.py
9192
"
@@ -101,6 +102,7 @@ jobs:
101102
webhookUrl: ${{ secrets.ZHOOK_URL_DEV_NOTIFICATIONS }}
102103
eventJson: ${{ toJson(github.event) }}
103104
senderUsername: GitHubZ
105+
senderIconUrl: https://github.com/fluidicon.png
104106
zitiLogLevel: 6
105107

106108
- name: Print Debug Info

debug.Dockerfile

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
FROM zhook-action AS distroless
2+
3+
FROM python:3-slim AS debug
4+
5+
COPY --from=distroless /app /app
6+
7+
RUN apt-get update && apt-get install --yes bash

0 commit comments

Comments
 (0)