Commit c9724dc8 authored by Li Mi's avatar Li Mi

先放到DockerHub再拉回来

parent 88cf8cbb
......@@ -16,11 +16,11 @@ jobs:
- name: 构建 PHP-FPM-73 镜像
uses: docker/build-push-action@v1
with:
username: ${{ secrets.TKE_USERNAME }}
password: ${{ secrets.TKE_PASSWORD }}
username: ${{ secrets.HUB_USERNAME }}
password: ${{ secrets.HUB_PASSWORD }}
path: ./php-fpm
dockerfile: ./php-fpm/Dockerfile.php.73
registry: ccr.ccs.tencentyun.com
registry: docker.io
repository: gzzchh/stacks
tags: php-fpm-73
......@@ -32,10 +32,23 @@ jobs:
- name: 构建 PHP-FPM-74 镜像
uses: docker/build-push-action@v1
with:
username: ${{ secrets.TKE_USERNAME }}
password: ${{ secrets.TKE_PASSWORD }}
username: ${{ secrets.HUB_USERNAME }}
password: ${{ secrets.HUB_PASSWORD }}
path: ./php-fpm
dockerfile: ./php-fpm/Dockerfile.php.74
registry: ccr.ccs.tencentyun.com
registry: docker.io
repository: gzzchh/stacks
tags: php-fpm-74
sync-back:
runs-on: ubuntu-latest
needs:
- build-php-fpm-73
- build-php-fpm-74
steps:
- name: 检出代码
uses: actions/checkout@v2
- name: 准备同步工具
run: bash ./tools.sh
- name: 搬回国内
run: ./image-syncer -r 3 --auth auth.json --images ./php-fpm/pter.yml
{
"ccr.ccs.tencentyun.com": {
"username": "TKE_USERNAME",
"password": "TKE_PASSWORD",
"useEnv": true
},
"registry.hub.docker.com": {
"username": "HUB_USERNAME",
"password": "HUB_PASSWORD",
"useEnv": true
}
}
\ No newline at end of file
gzzchh/stacks:php-fpm-73: ccr.ccs.tencentyun.com/gzzchh/stacks:php-fpm-73
gzzchh/stacks:php-fpm-74: ccr.ccs.tencentyun.com/gzzchh/stacks:php-fpm-74
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment