Commit 2ab4c014 authored by Li Mi's avatar Li Mi

其实是支持多阶段的嘛

parent 2711859d
......@@ -8,21 +8,38 @@ on:
# 任务
jobs:
# build-php-fpm-73:
# runs-on: ubuntu-latest
# steps:
# - name: 检出代码
# uses: actions/checkout@v2
# - name: 构建 PHP-FPM-73 镜像
# uses: whoan/docker-build-with-cache-action@v5
# with:
# username: ${{ secrets.TKE_USERNAME }}
# password: ${{ secrets.TKE_PASSWORD }}
# image_name: gzzchh/stacks
# image_tag: php-fpm-73
# registry: docker.pkg.github.com
# context: ./php-fpm
# dockerfile: Dockerfile.php.73
# push_image_and_stages: true # eg: push only if docker run succeed
build-php-fpm-73:
runs-on: ubuntu-latest
steps:
- name: 检出代码
uses: actions/checkout@v2
- name: 构建 PHP-FPM-73 镜像
uses: whoan/docker-build-with-cache-action@v5
uses: docker/build-push-action@v1
with:
username: "${{ secrets.HUB_USERNAME }}"
password: "${{ secrets.HUB_PASSWORD }}"
image_name: gzzchh/stacks
image_tag: php-fpm-73
context: ./php-fpm
dockerfile: Dockerfile.php.73
push_image_and_stages: true # eg: push only if docker run succeed
username: ${{ secrets.TKE_USERNAME }}
password: ${{ secrets.TKE_PASSWORD }}
path: ./php-fpm
dockerfile: ./php-fpm/Dockerfile.php.73
registry: ccr.ccs.tencentyun.com
repository: gzzchh/stacks
tags: php-fpm-73
build-php-fpm-74:
runs-on: ubuntu-latest
steps:
......@@ -34,7 +51,7 @@ jobs:
username: ${{ secrets.TKE_USERNAME }}
password: ${{ secrets.TKE_PASSWORD }}
path: ./php-fpm
dockerfile: ./php-fpm/Dockerfile.php.73
dockerfile: ./php-fpm/Dockerfile.php.74
registry: ccr.ccs.tencentyun.com
repository: gzzchh/stacks
tags: 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