prime8dev

prime8dev
git clone https://git.prime8.dev/prime8dev.git
Log | Files | Refs | README | LICENSE

commit b48e31a53e78e55a86c962688eadcf099dc303cd
parent d05545840897a22000d9dd019d45b8dce165cdf9
Author: Damian Myrda <damian@prime8.dev>
Date:   Tue, 17 Feb 2026 10:33:15 -0600

Use Node.js for JSON payload generation

Diffstat:
M.gitlab-ci.yml | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml @@ -5,7 +5,7 @@ deploy: stage: deploy script: - | - 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") + PAYLOAD=$(node -e "console.log(JSON.stringify({ref: 'refs/heads/master', commit: process.argv[1], commit_message: process.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" \