Skip to content

Commit

Permalink
Integrating with Slack from GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
akannan1087 authored Mar 7, 2024
1 parent 2b38fe1 commit 38d0d76
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/cicd.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: cicd-workflow with slack integration
on:
push:
branches: [ "master" ]
jobs:
job1:
runs-on: ubuntu-latest
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
steps:
- uses: act10ns/slack@v2
with:
status: starting
channel: '#mar-2024-weekend-batch'
message: Starting Docker Build image...
if: always()
- uses: actions/checkout@v3
- name: Build Docker image
run: |
docker build -t my-docker-repo .
- name: slack - GitHub Actions Slack integration
- uses: act10ns/slack@v2
with:
channel: '#mar-2024-weekday-batch'
status: ${{ job.status }}
steps: ${{ toJson(steps) }}
if: always()

0 comments on commit 38d0d76

Please sign in to comment.