diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml index 7474869..9f3ffa3 100644 --- a/.github/workflows/docker-image.yml +++ b/.github/workflows/docker-image.yml @@ -14,6 +14,14 @@ jobs: - name: Checkout uses: actions/checkout@v4 + - + name: Discord Webhook Action - Build Start + uses: tsickert/discord-webhook@v5.3.0 + with: + webhook-url: ${{ secrets.DISCORD_WEBHOOK_URL }} + embed-title: ${{ github.repository }} API - Build Started! + embed-url: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }} + embed-description: ${{ github.event.head_commit.message }} - name: Login to Docker Hub uses: docker/login-action@v3 @@ -32,6 +40,23 @@ jobs: platforms: linux/amd64,linux/arm64 push: true tags: ${{ secrets.DOCKERHUB_USERNAME }}/lanops-spotify-jukebox:api-latest + - + name: Discord Webhook Action - Build Success + uses: tsickert/discord-webhook@v5.3.0 + with: + webhook-url: ${{ secrets.DISCORD_WEBHOOK_URL }} + embed-title: ${{ github.repository }} API - Build Success! + embed-url: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }} + embed-description: ${{ github.event.head_commit.message }} + - + name: Discord Webhook Action - Build Failure + if: failure() + uses: tsickert/discord-webhook@v5.3.0 + with: + webhook-url: ${{ secrets.DISCORD_WEBHOOK_URL }} + embed-title: ${{ github.repository }} API - Build Failure! + embed-url: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }} + embed-description: ${{ github.event.head_commit.message }} build-ui: runs-on: ubuntu-latest @@ -39,6 +64,14 @@ jobs: - name: Checkout uses: actions/checkout@v4 + - + name: Discord Webhook Action - Build Start + uses: tsickert/discord-webhook@v5.3.0 + with: + webhook-url: ${{ secrets.DISCORD_WEBHOOK_URL }} + embed-title: ${{ github.repository }} UI - Build Started! + embed-url: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }} + embed-description: ${{ github.event.head_commit.message }} - name: Login to Docker Hub uses: docker/login-action@v3 @@ -59,3 +92,20 @@ jobs: platforms: linux/amd64,linux/arm64 push: true tags: ${{ secrets.DOCKERHUB_USERNAME }}/lanops-spotify-jukebox:ui-latest + - + name: Discord Webhook Action - Build Success + uses: tsickert/discord-webhook@v5.3.0 + with: + webhook-url: ${{ secrets.DISCORD_WEBHOOK_URL }} + embed-title: ${{ github.repository }} UI - Build Success! + embed-url: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }} + embed-description: ${{ github.event.head_commit.message }} + - + name: Discord Webhook Action - Build Failure + if: failure() + uses: tsickert/discord-webhook@v5.3.0 + with: + webhook-url: ${{ secrets.DISCORD_WEBHOOK_URL }} + embed-title: ${{ github.repository }} UI - Build Failure! + embed-url: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }} + embed-description: ${{ github.event.head_commit.message }}