Skip to content

Commit a94b9c1

Browse files
committed
feat: add notification after push release image
Signed-off-by: Ashing Zheng <[email protected]>
1 parent 3334e78 commit a94b9c1

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

.github/workflows/push-docker.yaml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,3 +55,29 @@ jobs:
5555
run: |
5656
echo "building multi-arch images with tag: $TAG"
5757
make build-push-multi-arch-image
58+
59+
notification:
60+
needs: docker
61+
runs-on: ubuntu-latest
62+
timeout-minutes: 3
63+
steps:
64+
- name: Send Feishu Message
65+
env:
66+
ACTIONS_FEISHU_TAG: v1.3.1
67+
INPUT_WEBHOOK: ${{ secrets.FEISHU_ROBOT_WEBHOOK_URL }}
68+
INPUT_MESSAGE_TYPE: post
69+
INPUT_TITLE: Docker Image Release CI ${{ github.ref_name }}
70+
INPUT_CONTENT: |
71+
The Docker image build and push has completed successfully. Here are the details:
72+
73+
- **Tag**: ${{ github.ref_name }}
74+
- **Commit**: ${{ github.sha }}
75+
- **Author**: ${{ github.actor }}
76+
- **Run URL**: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}
77+
78+
run: |
79+
sudo apt update
80+
sudo apt install wget -y
81+
wget -q https://github.com/xiachufang/actions-feishu/releases/download/${{ env.ACTIONS_FEISHU_TAG }}/linux-amd64-actions-feishu.tar.gz
82+
tar zxf linux-amd64-actions-feishu.tar.gz feishu
83+
./feishu

0 commit comments

Comments
 (0)