commit d05545840897a22000d9dd019d45b8dce165cdf9
parent 07a7a01c6255c72f5bd1b66722ff0c77887e189f
Author: Damian Myrda <damian@prime8.dev>
Date: Tue, 17 Feb 2026 10:32:28 -0600
Use Python for JSON payload instead of jq
Diffstat:
1 file changed, 1 insertion(+), 7 deletions(-)
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
@@ -3,15 +3,9 @@ stages:
deploy:
stage: deploy
- before_script:
- - apt-get update && apt-get install -y jq
script:
- |
- PAYLOAD=$(jq -n \
- --arg ref "refs/heads/master" \
- --arg commit "$CI_COMMIT_SHA" \
- --arg msg "$CI_COMMIT_MESSAGE" \
- '{ref: $ref, commit: $commit, commit_message: $msg}')
+ PAYLOAD=$(python3 -c "import json, sys; print(json.dumps({'ref': 'refs/heads/master', 'commit': sys.argv[1], 'commit_message': sys.argv[2]}))" "$CI_COMMIT_SHA" "$CI_COMMIT_MESSAGE")
curl -X POST "${DOKPLOY_DEPLOY_URL}" \
-H "Content-Type: application/json" \
-H "X-Gitlab-Event: Push Hook" \