Sign inSign up

alicey/gha2discord

By alicey

•Updated 3 months ago

https://github.com/Alicey0719/gha2discord

Image
0

3.0K

alicey/gha2discord repository overview

⁠gha2discord

⁠Env

WEBHOOK_URL="https://discord.com/api/webhooks/[hogehoge]/[hiyohiyo]"
MESSAGE_USERNAME="GitHub Actions"
MESSAGE_AVATAR_URL="https://nyaaaaan.alicey.dev/sugoi_icon.jpg"
MESSAGE_AUTHORNAME="Docker Push"
MESSAGE_AUTHORICON_URL="https://nyaaaaan.alicey.dev/kawaii_icon.jpg"
MESSAGE_COMMENT="なんかpushされたよ\ntagid"

⁠Usage

  • GitHubActions yaml (step)
-
    name: discord notification
    uses: docker://alicey/gha2discord:latest
    env:
        WEBHOOK_URL: ${{ secrets.DC_WEBHOOK_URL }}
        MESSAGE_USERNAME: "GitHub Actions"
        MESSAGE_AVATAR_URL: ""
        MESSAGE_AUTHORNAME: "Docker Push"
        MESSAGE_AUTHORICON_URL: ""
        MESSAGE_COMMENT: "comment\n${{ secrets.DOCKERHUB_USERNAME }}/app-name:${{ env.BUILD_TAG }}"
    with:
        entrypoint: "python3"
        args: "/opt/app/app.py"

Tag summary

Content type

Image

Digest

sha256:3d9b09b66…

Size

404.5 MB

Last updated

3 months ago

docker pull alicey/gha2discord