From ec52ef8320b9d191c76ce0ed3035730fb64a7e2b Mon Sep 17 00:00:00 2001 From: Leonid Podolinskiy Date: Sun, 22 Jan 2023 17:11:11 +0200 Subject: [PATCH 1/3] add slack notification to init contianer action --- .github/workflows/init_container.yaml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.github/workflows/init_container.yaml b/.github/workflows/init_container.yaml index f1b7881..e3178b7 100644 --- a/.github/workflows/init_container.yaml +++ b/.github/workflows/init_container.yaml @@ -62,3 +62,15 @@ jobs: tags: "lightruncom/k8s-operator-init-java-agent-${{ matrix.agents.platform }}:${{steps.set_tag.outputs.TAG_NAME}}" build-args: | FILE=${{ matrix.agents.file }} + + + - name: Slack Notification + uses: rtCamp/action-slack-notify@v2.2.0 + env: + SLACK_CHANNEL: test-alerts + SLACK_COLOR: ${{ job.status }} # or a specific color like 'good' or '#ff00ff' + # SLACK_ICON: https://github.com/rtCamp.png?size=48 + SLACK_MESSAGE: 'Tag ${{ inputs.release_tag }}\nPlatform ${{ matrix.agents.platform }}' + SLACK_TITLE: Init contianer build status + # SLACK_USERNAME: rtCamp + SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }} \ No newline at end of file From 58adda73230a6359f18b86b79a86d0531d73d20f Mon Sep 17 00:00:00 2001 From: Leonid Podolinskiy Date: Sun, 22 Jan 2023 17:15:46 +0200 Subject: [PATCH 2/3] upd message --- .github/workflows/init_container.yaml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/.github/workflows/init_container.yaml b/.github/workflows/init_container.yaml index e3178b7..b91a1e5 100644 --- a/.github/workflows/init_container.yaml +++ b/.github/workflows/init_container.yaml @@ -69,8 +69,6 @@ jobs: env: SLACK_CHANNEL: test-alerts SLACK_COLOR: ${{ job.status }} # or a specific color like 'good' or '#ff00ff' - # SLACK_ICON: https://github.com/rtCamp.png?size=48 - SLACK_MESSAGE: 'Tag ${{ inputs.release_tag }}\nPlatform ${{ matrix.agents.platform }}' - SLACK_TITLE: Init contianer build status - # SLACK_USERNAME: rtCamp + SLACK_MESSAGE: 'Tag ${{ inputs.release_tag }} | Platform ${{ matrix.agents.platform }}' + SLACK_TITLE: Init contianer build status - ${{ job.status }} SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }} \ No newline at end of file From f4db3e637b72a4e15ca716bf08ecc451614f44cf Mon Sep 17 00:00:00 2001 From: Leonid Podolinskiy Date: Sun, 22 Jan 2023 17:28:43 +0200 Subject: [PATCH 3/3] change channel --- .github/workflows/init_container.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/init_container.yaml b/.github/workflows/init_container.yaml index b91a1e5..ffec9da 100644 --- a/.github/workflows/init_container.yaml +++ b/.github/workflows/init_container.yaml @@ -67,7 +67,7 @@ jobs: - name: Slack Notification uses: rtCamp/action-slack-notify@v2.2.0 env: - SLACK_CHANNEL: test-alerts + SLACK_CHANNEL: devops-alerts SLACK_COLOR: ${{ job.status }} # or a specific color like 'good' or '#ff00ff' SLACK_MESSAGE: 'Tag ${{ inputs.release_tag }} | Platform ${{ matrix.agents.platform }}' SLACK_TITLE: Init contianer build status - ${{ job.status }}