diff --git a/.gitea/workflows/build-and-push.yaml b/.gitea/workflows/build-and-push.yaml index ca7fa0b6..b36a7b9b 100755 --- a/.gitea/workflows/build-and-push.yaml +++ b/.gitea/workflows/build-and-push.yaml @@ -9,7 +9,8 @@ jobs: - uses: sarisia/actions-status-discord@v1 if: always() with: - title: Pipeline is starting:${{ github.event.head_commit.message }} + title: "Pipeline is starting" + status: webhook: ${{ secrets.DISCORD_WEBHOOK }} detect-changed-files: runs-on: ubuntu-latest @@ -84,3 +85,14 @@ jobs: version: 2.6.7 command: app options: --insecure --server 192.168.1.205 --auth-token ${{ secrets.ARGOCD_TOKEN }} set dragon-bot --helm-set image.tag=${{ gitea.run_id }} + + post-finish-message: + runs-on: ubuntu-latest + if: ${{ (steps.Build-and-Push-Docker.outcome == 'success') }} + steps: + - uses: sarisia/actions-status-discord@v1 + if: always() + with: + title: "Pipeline has completed successfully" + status: + webhook: ${{ secrets.DISCORD_WEBHOOK }} \ No newline at end of file