Skip to content

Commit

Permalink
IMAGE_URL
Browse files Browse the repository at this point in the history
  • Loading branch information
lltx authored Jun 7, 2024
1 parent 2b5155a commit 7ab4b89
Showing 1 changed file with 10 additions and 11 deletions.
21 changes: 10 additions & 11 deletions .github/workflows/mirror.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,16 +37,15 @@ jobs:
docker tag ${{ github.event.inputs.IMAGE_NAME }}:${{ github.event.inputs.IMAGE_VERSION }} ${{ github.event.inputs.TARGET_REGISTRY }}/${{ github.event.inputs.TARGET_REPOSITORY }}/${{ github.event.inputs.NEW_NAME }}:${{ github.event.inputs.IMAGE_VERSION }}
docker push ${{ github.event.inputs.TARGET_REGISTRY }}/${{ github.event.inputs.TARGET_REPOSITORY }}/${{ github.event.inputs.NEW_NAME }}:${{ github.event.inputs.IMAGE_VERSION }}
- name: Notify WeChat
- name: qyweix send message
uses: chf007/action-wechat-work@master
env:
WEBHOOK_URL: ${{ secrets.WECHAT_WORK_BOT_WEBHOOK }}
WECHAT_WORK_BOT_WEBHOOK: ${{secrets.WECHAT_WORK_BOT_WEBHOOK}}
IMAGE_URL: ${{ github.event.inputs.TARGET_REGISTRY }}/${{ github.event.inputs.TARGET_REPOSITORY }}/${{ github.event.inputs.NEW_NAME }}:${{ github.event.inputs.IMAGE_VERSION }}
run: |
curl -X POST $WEBHOOK_URL \
-H 'Content-Type: application/json' \
-d '{
"msgtype": "text",
"text": {
"content": "'$IMAGE_URL'"
}
}'
with:
msgtype: markdown
content: |
# 镜像同步成功
```
${{IMAGE_URL}}
```

0 comments on commit 7ab4b89

Please sign in to comment.