diff --git a/.github/workflows/build-docker.yml b/.github/workflows/build-docker.yml index 3d5c2f8..2540065 100644 --- a/.github/workflows/build-docker.yml +++ b/.github/workflows/build-docker.yml @@ -1,4 +1,5 @@ name: Docker Build +run-name: Docker Build (${{ github.event.inputs.target }}) on: workflow_dispatch: diff --git a/.github/workflows/example_cards.yml b/.github/workflows/example_cards.yml index 4ae5767..1c265ff 100644 --- a/.github/workflows/example_cards.yml +++ b/.github/workflows/example_cards.yml @@ -14,6 +14,7 @@ on: env: VAST_API_KEY: ${{ secrets.VAST_API_KEY }} + SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }} EXAMPLE_NAME: cards HELPER_PATH: .github/workflows/vast/helper.sh @@ -66,3 +67,16 @@ jobs: - name: shutdown if: always() run: bash $HELPER_PATH delete + + notify_failure: + runs-on: ${{ github.event.inputs.runner }} + needs: run + if: ${{ failure() }} + steps: + + - name: Slack Notification Failure + uses: rtCamp/action-slack-notify@v2 + env: + SLACK_TITLE: Deploy / Failure + SLACK_COLOR: danger + SLACK_MESSAGE: One or more tests failed. \ No newline at end of file diff --git a/.github/workflows/example_curtain.yml b/.github/workflows/example_curtain.yml index b4842e5..849e46e 100644 --- a/.github/workflows/example_curtain.yml +++ b/.github/workflows/example_curtain.yml @@ -14,6 +14,7 @@ on: env: VAST_API_KEY: ${{ secrets.VAST_API_KEY }} + SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }} EXAMPLE_NAME: curtain HELPER_PATH: .github/workflows/vast/helper.sh @@ -66,3 +67,16 @@ jobs: - name: shutdown if: always() run: bash $HELPER_PATH delete + + notify_failure: + runs-on: ${{ github.event.inputs.runner }} + needs: run + if: ${{ failure() }} + steps: + + - name: Slack Notification Failure + uses: rtCamp/action-slack-notify@v2 + env: + SLACK_TITLE: Deploy / Failure + SLACK_COLOR: danger + SLACK_MESSAGE: One or more tests failed. \ No newline at end of file diff --git a/.github/workflows/example_domino.yml b/.github/workflows/example_domino.yml index 5b6b193..3aa8759 100644 --- a/.github/workflows/example_domino.yml +++ b/.github/workflows/example_domino.yml @@ -14,6 +14,7 @@ on: env: VAST_API_KEY: ${{ secrets.VAST_API_KEY }} + SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }} EXAMPLE_NAME: domino HELPER_PATH: .github/workflows/vast/helper.sh @@ -66,3 +67,16 @@ jobs: - name: shutdown if: always() run: bash $HELPER_PATH delete + + notify_failure: + runs-on: ${{ github.event.inputs.runner }} + needs: run + if: ${{ failure() }} + steps: + + - name: Slack Notification Failure + uses: rtCamp/action-slack-notify@v2 + env: + SLACK_TITLE: Deploy / Failure + SLACK_COLOR: danger + SLACK_MESSAGE: One or more tests failed. \ No newline at end of file diff --git a/.github/workflows/example_drape.yml b/.github/workflows/example_drape.yml index 58ae381..af0bf05 100644 --- a/.github/workflows/example_drape.yml +++ b/.github/workflows/example_drape.yml @@ -14,6 +14,7 @@ on: env: VAST_API_KEY: ${{ secrets.VAST_API_KEY }} + SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }} EXAMPLE_NAME: drape HELPER_PATH: .github/workflows/vast/helper.sh @@ -66,3 +67,16 @@ jobs: - name: shutdown if: always() run: bash $HELPER_PATH delete + + notify_failure: + runs-on: ${{ github.event.inputs.runner }} + needs: run + if: ${{ failure() }} + steps: + + - name: Slack Notification Failure + uses: rtCamp/action-slack-notify@v2 + env: + SLACK_TITLE: Deploy / Failure + SLACK_COLOR: danger + SLACK_MESSAGE: One or more tests failed. \ No newline at end of file diff --git a/.github/workflows/example_friction.yml b/.github/workflows/example_friction.yml index ce4fc64..1232c00 100644 --- a/.github/workflows/example_friction.yml +++ b/.github/workflows/example_friction.yml @@ -14,6 +14,7 @@ on: env: VAST_API_KEY: ${{ secrets.VAST_API_KEY }} + SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }} EXAMPLE_NAME: friction HELPER_PATH: .github/workflows/vast/helper.sh @@ -66,3 +67,16 @@ jobs: - name: shutdown if: always() run: bash $HELPER_PATH delete + + notify_failure: + runs-on: ${{ github.event.inputs.runner }} + needs: run + if: ${{ failure() }} + steps: + + - name: Slack Notification Failure + uses: rtCamp/action-slack-notify@v2 + env: + SLACK_TITLE: Deploy / Failure + SLACK_COLOR: danger + SLACK_MESSAGE: One or more tests failed. \ No newline at end of file diff --git a/.github/workflows/example_hang.yml b/.github/workflows/example_hang.yml index b5ba36b..3536155 100644 --- a/.github/workflows/example_hang.yml +++ b/.github/workflows/example_hang.yml @@ -14,6 +14,7 @@ on: env: VAST_API_KEY: ${{ secrets.VAST_API_KEY }} + SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }} EXAMPLE_NAME: hang HELPER_PATH: .github/workflows/vast/helper.sh @@ -66,3 +67,16 @@ jobs: - name: shutdown if: always() run: bash $HELPER_PATH delete + + notify_failure: + runs-on: ${{ github.event.inputs.runner }} + needs: run + if: ${{ failure() }} + steps: + + - name: Slack Notification Failure + uses: rtCamp/action-slack-notify@v2 + env: + SLACK_TITLE: Deploy / Failure + SLACK_COLOR: danger + SLACK_MESSAGE: One or more tests failed. \ No newline at end of file diff --git a/.github/workflows/example_needle.yml b/.github/workflows/example_needle.yml index f6e6b98..dcf29d7 100644 --- a/.github/workflows/example_needle.yml +++ b/.github/workflows/example_needle.yml @@ -14,6 +14,7 @@ on: env: VAST_API_KEY: ${{ secrets.VAST_API_KEY }} + SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }} EXAMPLE_NAME: needle HELPER_PATH: .github/workflows/vast/helper.sh @@ -66,3 +67,16 @@ jobs: - name: shutdown if: always() run: bash $HELPER_PATH delete + + notify_failure: + runs-on: ${{ github.event.inputs.runner }} + needs: run + if: ${{ failure() }} + steps: + + - name: Slack Notification Failure + uses: rtCamp/action-slack-notify@v2 + env: + SLACK_TITLE: Deploy / Failure + SLACK_COLOR: danger + SLACK_MESSAGE: One or more tests failed. \ No newline at end of file diff --git a/.github/workflows/example_stack.yml b/.github/workflows/example_stack.yml index 33aa885..a02eccf 100644 --- a/.github/workflows/example_stack.yml +++ b/.github/workflows/example_stack.yml @@ -14,6 +14,7 @@ on: env: VAST_API_KEY: ${{ secrets.VAST_API_KEY }} + SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }} EXAMPLE_NAME: stack HELPER_PATH: .github/workflows/vast/helper.sh @@ -66,3 +67,16 @@ jobs: - name: shutdown if: always() run: bash $HELPER_PATH delete + + notify_failure: + runs-on: ${{ github.event.inputs.runner }} + needs: run + if: ${{ failure() }} + steps: + + - name: Slack Notification Failure + uses: rtCamp/action-slack-notify@v2 + env: + SLACK_TITLE: Deploy / Failure + SLACK_COLOR: danger + SLACK_MESSAGE: One or more tests failed. \ No newline at end of file diff --git a/.github/workflows/example_trampoline.yml b/.github/workflows/example_trampoline.yml index 574fad5..6d0081b 100644 --- a/.github/workflows/example_trampoline.yml +++ b/.github/workflows/example_trampoline.yml @@ -14,6 +14,7 @@ on: env: VAST_API_KEY: ${{ secrets.VAST_API_KEY }} + SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }} EXAMPLE_NAME: trampoline HELPER_PATH: .github/workflows/vast/helper.sh @@ -66,3 +67,16 @@ jobs: - name: shutdown if: always() run: bash $HELPER_PATH delete + + notify_failure: + runs-on: ${{ github.event.inputs.runner }} + needs: run + if: ${{ failure() }} + steps: + + - name: Slack Notification Failure + uses: rtCamp/action-slack-notify@v2 + env: + SLACK_TITLE: Deploy / Failure + SLACK_COLOR: danger + SLACK_MESSAGE: One or more tests failed. \ No newline at end of file diff --git a/.github/workflows/example_trapped.yml b/.github/workflows/example_trapped.yml index 89555b2..ab32c32 100644 --- a/.github/workflows/example_trapped.yml +++ b/.github/workflows/example_trapped.yml @@ -14,6 +14,7 @@ on: env: VAST_API_KEY: ${{ secrets.VAST_API_KEY }} + SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }} EXAMPLE_NAME: trapped HELPER_PATH: .github/workflows/vast/helper.sh @@ -66,3 +67,16 @@ jobs: - name: shutdown if: always() run: bash $HELPER_PATH delete + + notify_failure: + runs-on: ${{ github.event.inputs.runner }} + needs: run + if: ${{ failure() }} + steps: + + - name: Slack Notification Failure + uses: rtCamp/action-slack-notify@v2 + env: + SLACK_TITLE: Deploy / Failure + SLACK_COLOR: danger + SLACK_MESSAGE: One or more tests failed. \ No newline at end of file diff --git a/.github/workflows/example_twist.yml b/.github/workflows/example_twist.yml index 5de9d8c..f3aa5be 100644 --- a/.github/workflows/example_twist.yml +++ b/.github/workflows/example_twist.yml @@ -14,6 +14,7 @@ on: env: VAST_API_KEY: ${{ secrets.VAST_API_KEY }} + SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }} EXAMPLE_NAME: twist HELPER_PATH: .github/workflows/vast/helper.sh @@ -66,3 +67,16 @@ jobs: - name: shutdown if: always() run: bash $HELPER_PATH delete + + notify_failure: + runs-on: ${{ github.event.inputs.runner }} + needs: run + if: ${{ failure() }} + steps: + + - name: Slack Notification Failure + uses: rtCamp/action-slack-notify@v2 + env: + SLACK_TITLE: Deploy / Failure + SLACK_COLOR: danger + SLACK_MESSAGE: One or more tests failed. \ No newline at end of file diff --git a/.github/workflows/slack-test.yml b/.github/workflows/slack-test.yml new file mode 100644 index 0000000..f4ea988 --- /dev/null +++ b/.github/workflows/slack-test.yml @@ -0,0 +1,34 @@ +name: Slack Notification + +on: + workflow_dispatch: + +env: + SLACK_USERNAME: DeployBot + SLACK_ICON: https://github.githubassets.com/images/modules/logos_page/GitHub-Mark.png + SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }} + +jobs: + slackNotification: + name: Slack-Notification + runs-on: ubuntu-latest + + steps: + - name: Checkout + uses: actions/checkout@v3 + + - name: Slack Notification Success + uses: rtCamp/action-slack-notify@v2 + if: ${{ success() }} + env: + SLACK_TITLE: Deploy / Success + SLACK_COLOR: good + SLACK_MESSAGE: All tests passed. + + - name: Slack Notification Failure + uses: rtCamp/action-slack-notify@v2 + if: ${{ failure() }} + env: + SLACK_TITLE: Deploy / Failure + SLACK_COLOR: danger + SLACK_MESSAGE: Tests failed. \ No newline at end of file diff --git a/.github/workflows/template/example_template.yml b/.github/workflows/template/example_template.yml index d657be0..1a7b76d 100644 --- a/.github/workflows/template/example_template.yml +++ b/.github/workflows/template/example_template.yml @@ -14,6 +14,7 @@ on: env: VAST_API_KEY: ${{ secrets.VAST_API_KEY }} + SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }} EXAMPLE_NAME: **** HELPER_PATH: .github/workflows/vast/helper.sh @@ -66,3 +67,16 @@ jobs: - name: shutdown if: always() run: bash $HELPER_PATH delete + + notify_failure: + runs-on: ${{ github.event.inputs.runner }} + needs: run + if: ${{ failure() }} + steps: + + - name: Slack Notification Failure + uses: rtCamp/action-slack-notify@v2 + env: + SLACK_TITLE: Deploy / Failure + SLACK_COLOR: danger + SLACK_MESSAGE: One or more tests failed. \ No newline at end of file diff --git a/.github/workflows/vast-all.yml b/.github/workflows/vast-all.yml index dfb23f9..73c8745 100644 --- a/.github/workflows/vast-all.yml +++ b/.github/workflows/vast-all.yml @@ -14,6 +14,7 @@ on: env: VAST_API_KEY: ${{ secrets.VAST_API_KEY }} + SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }} HELPER_PATH: .github/workflows/vast/helper.sh jobs: @@ -112,4 +113,31 @@ jobs: - name: shutdown if: always() - run: bash $HELPER_PATH delete \ No newline at end of file + run: bash $HELPER_PATH delete + + notify_success: + runs-on: ${{ github.event.inputs.runner }} + needs: [part_1, part_2, part_3, part_4] + if: ${{ success() }} + steps: + + - name: Slack Notification Success + uses: rtCamp/action-slack-notify@v2 + if: ${{ success() }} + env: + SLACK_TITLE: Deploy / Success + SLACK_COLOR: good + SLACK_MESSAGE: All tests passed. + + notify_failure: + runs-on: ${{ github.event.inputs.runner }} + needs: [part_1, part_2, part_3, part_4] + if: ${{ failure() }} + steps: + + - name: Slack Notification Failure + uses: rtCamp/action-slack-notify@v2 + env: + SLACK_TITLE: Deploy / Failure + SLACK_COLOR: danger + SLACK_MESSAGE: One or more tests failed. \ No newline at end of file