apiVersion: v1
kind: ConfigMap
metadata:
  namespace: blog-ni-system
  name: blog-ni-curl-trigger-config
data:
  curl-trigger.sh: |
    #!/bin/ash

    curl -L -X POST '10.43.100.102:9000/hooks/build' \
    -H 'Content-Type: application/json' \
    -H "X-Gitlab-Token: $HUGO_PUSH_SECRET" \
    --insecure \
    -d "{
        \"ref\" : \"$HUGO_BRANCH\"
    }"