Skip to content

Commit 0a72fb1

Browse files
committed
pin Ziti Py SDK version in Docker action to compare with running zhook.py directly
1 parent 761300c commit 0a72fb1

File tree

2 files changed

+27
-25
lines changed

2 files changed

+27
-25
lines changed

.github/workflows/zhook.yml

Lines changed: 26 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -20,31 +20,33 @@ jobs:
2020
runs-on: ubuntu-latest
2121
name: POST Webhook
2222
steps:
23-
- uses: actions/checkout@v4
24-
- name: run hook directly
25-
if: |
26-
github.repository_owner == 'openziti'
27-
&& ((github.event_name != 'pull_request_review')
28-
|| (github.event_name == 'pull_request_review' && github.event.review.state == 'approved'))
29-
env:
30-
INPUT_ZITIID: ${{ secrets.ZITI_MATTERMOST_IDENTITY }}
31-
INPUT_WEBHOOKURL: ${{ secrets.ZHOOK_URL }}
32-
INPUT_EVENTJSON: ${{ toJson(github.event) }}
33-
INPUT_SENDERUSERNAME: GitHubZ
34-
INPUT_DESTCHANNEL: dev-notifications
35-
INPUT_SENDERICONURL: https://github.com/fluidicon.png
36-
ZITI_LOG: 6
37-
TLSUV_DEBUG: 6
38-
shell: bash
39-
run: |
40-
set -o pipefail
41-
set -o xtrace
42-
pip install --user --upgrade requests openziti==1.0.0
43-
echo "DEBUG: PYTHONPATH=${PYTHONPATH:-}"
44-
python ./zhook.py
45-
23+
- name: Checkout
24+
uses: actions/checkout@v4
25+
26+
# - name: Run Python Script Directly
27+
# if: |
28+
# github.repository_owner == 'openziti'
29+
# && ((github.event_name != 'pull_request_review')
30+
# || (github.event_name == 'pull_request_review' && github.event.review.state == 'approved'))
31+
# env:
32+
# INPUT_ZITIID: ${{ secrets.ZITI_MATTERMOST_IDENTITY }}
33+
# INPUT_WEBHOOKURL: ${{ secrets.ZHOOK_URL }}
34+
# INPUT_EVENTJSON: ${{ toJson(github.event) }}
35+
# INPUT_SENDERUSERNAME: GitHubZ
36+
# INPUT_DESTCHANNEL: dev-notifications
37+
# INPUT_SENDERICONURL: https://github.com/fluidicon.png
38+
# ZITI_LOG: 6
39+
# TLSUV_DEBUG: 6
40+
# shell: bash
41+
# run: |
42+
# set -o pipefail
43+
# set -o xtrace
44+
# pip install --user --upgrade requests openziti==1.0.0
45+
# echo "DEBUG: PYTHONPATH=${PYTHONPATH:-}"
46+
# python ./zhook.py
47+
4648
- uses: ./
47-
name: run the action from the checkout
49+
name: Run as a GH Action from the Local Checkout
4850
if: |
4951
github.repository_owner == 'openziti'
5052
&& ((github.event_name != 'pull_request_review')

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
FROM python:3-slim AS builder
22

3-
RUN pip install --target=/app requests openziti
3+
RUN pip install --target=/app requests openziti==1.1.0
44

55
# https://github.com/GoogleContainerTools/distroless
66
FROM gcr.io/distroless/python3-debian12

0 commit comments

Comments
 (0)