Skip to content

Commit

Permalink
Update mirror.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
suj1e authored Dec 2, 2024
1 parent 502d850 commit fd2492e
Showing 1 changed file with 2 additions and 16 deletions.
18 changes: 2 additions & 16 deletions .github/workflows/mirror.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@ on:
TARGET_REGISTRY:
description: '仓库地址'
required: true
default: 'registry.cn-hangzhou.aliyuncs.com'
default: 'registry.cn-shanghai.aliyuncs.com'
TARGET_REPOSITORY:
description: '空间名称'
required: true
default: 'dockerhub_mirror'
default: 'github-docker-sync'

jobs:
build:
Expand All @@ -38,17 +38,3 @@ jobs:
docker pull ${{ github.event.inputs.IMAGE_NAME }}:${{ github.event.inputs.IMAGE_VERSION }}
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: qyweixin send message
if: ${{ env.QYWX_ROBOT_URL != '' }}
uses: chf007/action-wechat-work@master
env:
WECHAT_WORK_BOT_WEBHOOK: ${{secrets.QYWX_ROBOT_URL}}
IMAGE_URL: ${{ github.event.inputs.TARGET_REGISTRY }}/${{ github.event.inputs.TARGET_REPOSITORY }}/${{ github.event.inputs.NEW_NAME }}:${{ github.event.inputs.IMAGE_VERSION }}
with:
msgtype: markdown
content: |
# 镜像同步成功
```
${{ env.IMAGE_URL }}
```

0 comments on commit fd2492e

Please sign in to comment.