Skip to content
This repository has been archived by the owner on Jan 5, 2022. It is now read-only.

A script to push GitLab server status to Discord webhook

License

Notifications You must be signed in to change notification settings

VdustR/gitlab-server-status-to-discord

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GitLab Daily Script

A script to push GitLab server status to Discord webhook.

Dependencies

  • node >= 10.7.0
  • yarn >= 1.7.0

Configuration

Fill your configuration into .env.local.

You can check .env to learn the options to set.

vi .env.local

// .env.local
DISCORD_WEBHOOK=https://discordapp.com/api/webhooks/12345/abcde
GITLAB_BACKUP_DIRECTORY=/path/to/gitlab/data/backups

Usage

Install modules:

yarn

Execute:

./run.sh

Add a plan executing the shell script via crontab -e:

0 9 * * * bash -c 'source /root/.bashrc && /path/to/gitlab-daily-script/run.sh'

About

A script to push GitLab server status to Discord webhook

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published