Skip to content

Commit

Permalink
Update docker.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
yaming116 authored Jun 7, 2024
1 parent eb3face commit 644e29a
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/docker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
# branches: [ main ]

env:
REGISTRY: registry.cn-beijing.aliyuncs.com
REGISTRY: registry.cn-hangzhou.aliyuncs.com
ALIYUN_REGISTRY_USER: "${{ secrets.ALIYUN_REGISTRY_USER }}"
ALIYUN_REGISTRY_PASSWORD: "${{ secrets.ALIYUN_REGISTRY_PASSWORD }}"
MM_NOTIFY_URL: "${{ secrets.MM_NOTIFY_URL }}"
Expand All @@ -27,6 +27,8 @@ jobs:
- name: Build and push image to ACR EE
run: |
docker login -u $ALIYUN_REGISTRY_USER -p $ALIYUN_REGISTRY_PASSWORD $REGISTRY
sh pull.sh
cat trigger.txt
curl -d '@trigger.txt' $MM_NOTIFY_URL
# sh pull.sh
data=`cat trigger.txt`
curl -H 'Content-Type: application/json' \
-d "{\"msgtype\": \"text\",\"text\": {\"content\":\"同步成功 $data \"}}" \
$MM_NOTIFY_URL

0 comments on commit 644e29a

Please sign in to comment.