Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add discord notification to deployment script #199

Conversation

ricardogsilva
Copy link

@ricardogsilva ricardogsilva commented Aug 21, 2024

This PR adds sending a notification to a discord channel when a deployment to staging has completed.

The deployment script is modified with an additional step that takes care of POSTing a request to a discord webhook (which needs to have been previously created).

This notification can be enabled by:

  • setting the ARPAV_PPCV_DEPLOYMENT_STATUS_DISCORD_WEBHOOK_URL environment variable
  • calling the deployment script with the --send-discord-notification flag
export ARPAV_PPCV_DEPLOYMENT_STATUS_DISCORD_WEBHOOK_URL=https://some.discord.webhook/url
python webhooks/hook-scripts/deploy.py --send-discord-notification

@ricardogsilva ricardogsilva marked this pull request as ready for review August 23, 2024 15:02
@francbartoli francbartoli merged commit 0772d00 into geobeyond:main Aug 23, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants