diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 0223dd9e..8c9caddc 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -22,3 +22,10 @@ jobs: username: ${{ secrets.SSH_USER }} key: ${{ secrets.SSH_KEY }} script: ${{ vars.DEPLOY_SCRIPT }} + + - name: Send Discord notification + uses: appleboy/discord-action@master + with: + webhook_id: ${{ secrets.DISCORD_WEBHOOK_ID }} + webhook_token: ${{ secrets.DISCORD_WEBHOOK_TOKEN }} + args: Deployment complete. diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index aa4d9c1e..3b3b4d14 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -25,6 +25,20 @@ jobs: with: submodules: 'true' + - name: Check git version + id: version + run: | + echo "neodb=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT + cd neodb-takahe + echo "takahe=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT + + - name: Send Discord notification + uses: appleboy/discord-action@master + with: + webhook_id: ${{ secrets.DISCORD_WEBHOOK_ID }} + webhook_token: ${{ secrets.DISCORD_WEBHOOK_TOKEN }} + args: Building docker image ${{ steps.version.outputs.neodb }}-${{ steps.version.outputs.takahe }} + - name: Set up QEMU uses: docker/setup-qemu-action@v2 @@ -52,3 +66,10 @@ jobs: push: ${{ github.event_name != 'pull_request' }} tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }} + + - name: Send Discord notification complete + uses: appleboy/discord-action@master + with: + webhook_id: ${{ secrets.DISCORD_WEBHOOK_ID }} + webhook_token: ${{ secrets.DISCORD_WEBHOOK_TOKEN }} + args: Published docker image ${{ steps.version.outputs.neodb }}-${{ steps.version.outputs.takahe }}