Skip to content

Commit

Permalink
actions updated
Browse files Browse the repository at this point in the history
  • Loading branch information
th0rn0 committed May 20, 2024
1 parent 773e0ea commit 6583bdb
Showing 1 changed file with 50 additions and 0 deletions.
50 changes: 50 additions & 0 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,14 @@ jobs:
-
name: Checkout
uses: actions/checkout@v4
-
name: Discord Webhook Action - Build Start
uses: tsickert/[email protected]
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
Expand All @@ -32,13 +40,38 @@ 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/[email protected]
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/[email protected]
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
steps:
-
name: Checkout
uses: actions/checkout@v4
-
name: Discord Webhook Action - Build Start
uses: tsickert/[email protected]
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
Expand All @@ -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/[email protected]
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/[email protected]
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 }}

0 comments on commit 6583bdb

Please sign in to comment.