Sign inSign up

juansecu/github-discord-updater

By juansecu

Updated over 1 year ago
Archived

Application to retrieve GitHub updates and send them through Discord webhooks.

Image
Web servers
0

689

juansecu/github-discord-updater repository overview

The purpose of this application is to retrieve GitHub updates than Discord webhooks cannot process successfully due to the expected format of the payload from Discord.

Warning

This project is not longer maintained in favor of better tools like n8n, Make, Pipedream, Zapier, etc.

Requirements

  • Node.js - Version 20.x

  • Discord Webhook URL

  • Environment variables:

    VariableTypeDescriptionRequiredDefaultExample
    HTTPS_CERT_FILEPATHStringThe file path of the HTTPS certificate fileNoNone/path/to/cert.pem
    HTTPS_KEY_FILEPATHStringThe file path of the HTTPS key fileNoNone/path/to/key.pem
    NODE_ENVStringThe environment where the application is runningNoNonedevelopment
    PORTNumberThe port where the HTTP server will be runningNo30009020
    PUBLIC_HOST_ADDRESSStringThe public address where the application is runningYesNoneexample.com
    SHOULD_USE_HTTPSBooleanWhether the application should use HTTPSNofalsetrue

    Note:

    • The NODE_ENV variable is used to determine the environment where the application is running. It is highly recommended to set it to production when deploying the application to a production environment.

Supported GitHub Events

  • gollum

Running

In order to run the application using Docker, you must have Docker installed on your machine.

For running the application with Docker, you will need to mount both the SSL cert and key files using Docker volumes and map port 3000 to your host machine.

Docker CLI
  • Windows

    > docker run -dp 8080:8080 \
        -v <path\to\ssl-cert>:${HTTPS_CERT_FILEPATH} \
        -v <path\to\ssl-key>:${HTTPS_KEY_FILEPATH} \
        --env-file <path\to\env\file> \
        --name <container-name> \
        juansecu/github-discord-updater:v<version number>
    
  • MacOS/Linux

    $ docker run -dp 3000:3000 \
        --env-file <path/to/env/file> \
        --name <container-name> \
        juansecu/github-discord-updater:v<version number>
    
Docker Compose

For running the application with Docker Compose, you can use the Docker Compose file provided in this repository for development and production.

After configuring the environment variables, you can run the application using the following command:

  • Docker Compose v1
$ docker-compose up -d
  • Docker Compose v2
$ docker compose up -d

How to Use

For learning how to use the application, you can check the API documentation by visiting the path /api-docs on the application's URL.

Once you understand how to use the application, you can start using it to retrieve GitHub updates by adding the application's URL as a webhook to the GitHub repository you want to retrieve updates from.

Tag summary

Content type

Image

Digest

sha256:7e4497969

Size

72.7 MB

Last updated

over 1 year ago

docker pull juansecu/github-discord-updater