Skills

Discord. Post deploys to a Discord channel as colour-coded embeds.

v2.0.0by musterDeploys, Rollbacks, Fleet

muster skill marketplace discord
Source
A Discord channel with a muster message holding two embeds: a green Deployed web embed and a blue Deploying to prod-web-3 embed with the host.
#deploys
musterAPPToday at 14:14

Deployed web

Today at 14:14

Deploying to prod-web-3

Host: 10.0.4.12

Today at 14:14

Set up in three steps. Everything stays on this machine.

  1. Install it

    muster skill marketplace discord
  2. Add your credentials

    muster skill configure discord

    It asks for:

    • Bot tokenhidden while you type
      MUSTER_DISCORD_BOT_TOKEN

      Developer Portal › Your app › Bot › Token

    • Channel ID
      MUSTER_DISCORD_CHANNEL_ID

      Turn on Developer Mode, right-click the channel › Copy Channel ID

    • Application ID, optional
      MUSTER_DISCORD_APP_ID

      Only for slash commands

    • Server ID, optional
      MUSTER_DISCORD_GUILD_ID

      Only for slash commands

    Values go in the skill’s config.env, which muster loads before each run.

  3. Turn it on

    muster skill enable discord

    From now on it runs by itself. Test it any time with muster skill run discord.

When it runs. The hooks it listens to.

post-deploy
After each service deploys
post-rollback
After each rollback
fleet-deploy-start
A fleet deploy starts
fleet-deploy-end
A fleet deploy finishes
fleet-machine-deploy-start
A machine starts deploying
fleet-machine-deploy-end
A machine finishes deploying
fleet-rollback-start
A fleet rollback starts
fleet-rollback-end
A fleet rollback finishes

Needs curl on the machine that deploys.