Skip to content

Latest commit

 

History

History
26 lines (21 loc) · 946 Bytes

File metadata and controls

26 lines (21 loc) · 946 Bytes

Getting Started

  1. Install Node.js 16.x
  2. Install dependencies: npm install
  3. Create a file called .env in the root of the application with the following contents:
    GITHUB_TOKEN="YOUR_GITHUB_TOKEN"
  4. Start the app: DEBUG=strapi-webhook-actions-proxy:* npm start

Testing Locally

curl --header "Content-Type: application/json" \
  --request POST \
  --data '{"event":"entry.create","created_at":"2020-01-10T08:47:36.649Z","model":"example","entry":{}}' \
  "http://localhost:5000/api?event_type=strapi_updated"

Build, Run, Publish Docker Image

docker buildx build --no-cache --platform linux/amd64 -t us-central1-docker.pkg.dev/estuary-marketing/strapi/webhook-proxy:latest .
docker run --publish 5000:5000 --env-file .env us-central1-docker.pkg.dev/estuary-marketing/strapi/webhook-proxy:latest
docker push us-central1-docker.pkg.dev/estuary-marketing/strapi/webhook-proxy:latest