Skip to content

Workflow file for this run

name: hyperf-构建和提交docker
on:
push:
branches: [main]
paths:
- "hyperf/**"
- "common/run-dir-file.sh"
- "common/env-set-file.sh"
- "common/timezone-set.sh"
- "common/open-sshd-passwd.sh"
- ".github/workflows/hyperf.yml"
- "!**.md"
jobs:
setup-build-publish:
runs-on: ubuntu-latest
name: 构建和推送docker镜像
steps:
- name: Checkout
# 使用action库 actions/checkout获取源码
uses: actions/checkout@v2.3.2
- name: hyperf:8.2-alpine-v3.19-swoole-slim-env
uses: docker/build-push-action@v1.1.0
with:
# Username used to log in to a Docker registry. If not set then no login will occur
username: adockero
# Password or personal access token used to log in to a Docker registry. If not set then no login will occur
password: ${{ secrets.PASSWORD }}
# Docker repository to tag the image with
repository: adockero/hyperf
# Comma-delimited list of tags. These will be added to the registry/repository to form the image's tags
tags: 8.2-alpine-v3.19-swoole-slim-env
# Path to the Dockerfile (Default is '{path}/Dockerfile')
path: ./
dockerfile: hyperf/Dockerfile.env
# Always attempt to pull a newer version of the image
always_pull: true
# 构建参数
build_args: BASE_FORM=hyperf/hyperf:8.2-alpine-v3.19-swoole-slim
# Adds labels with git repository information to the built image
add_git_labels: true
- name: hyperf:8.2-alpine-v3.19-swoole-slim-env-sshd-dev
uses: docker/build-push-action@v1.1.0
with:
# Username used to log in to a Docker registry. If not set then no login will occur
username: adockero
# Password or personal access token used to log in to a Docker registry. If not set then no login will occur
password: ${{ secrets.PASSWORD }}
# Docker repository to tag the image with
repository: adockero/hyperf
# Comma-delimited list of tags. These will be added to the registry/repository to form the image's tags
tags: 8.2-alpine-v3.19-swoole-slim-env-sshd-dev
# Path to the Dockerfile (Default is '{path}/Dockerfile')
path: ./
dockerfile: hyperf/Dockerfile.sshd
# Always attempt to pull a newer version of the image
always_pull: true
# 构建参数
build_args: BASE_FORM=adockero/hyperf:8.2-alpine-v3.19-swoole-slim-env
# Adds labels with git repository information to the built image
add_git_labels: true
- name: hyperf-7.4-alpine-v3.11-swoole-sshd-dev
uses: docker/build-push-action@v1.1.0
with:
# Username used to log in to a Docker registry. If not set then no login will occur
username: adockero
# Password or personal access token used to log in to a Docker registry. If not set then no login will occur
password: ${{ secrets.PASSWORD }}
# Docker repository to tag the image with
repository: adockero/hyperf
# Comma-delimited list of tags. These will be added to the registry/repository to form the image's tags
tags: 7.4-alpine-v3.11-swoole-sshd-dev
# Path to the Dockerfile (Default is '{path}/Dockerfile')
path: ./
dockerfile: hyperf/Dockerfile.sshd
# Always attempt to pull a newer version of the image
always_pull: true
# 构建参数
build_args: BASE_FORM=hyperf/hyperf:7.4-alpine-v3.11-swoole
# Adds labels with git repository information to the built image
add_git_labels: true
# - name: hyperf-7.4-alpine-v3.11-swoole-yasd-dev
# uses: docker/build-push-action@v1.1.0
# with:
# # Username used to log in to a Docker registry. If not set then no login will occur
# username: adockero
# # Password or personal access token used to log in to a Docker registry. If not set then no login will occur
# password: ${{ secrets.PASSWORD }}
# # Docker repository to tag the image with
# repository: adockero/hyperf
# # Comma-delimited list of tags. These will be added to the registry/repository to form the image's tags
# tags: 7.4-alpine-v3.11-swoole-yasd-dev
# # Path to the Dockerfile (Default is '{path}/Dockerfile')
# path: ./hyperf/
# dockerfile: hyperf/Dockerfile.yasd.dev
# # Always attempt to pull a newer version of the image
# always_pull: true
# # 构建参数
# build_args: BASE_FORM=hyperf/hyperf:7.4-alpine-v3.11-swoole
# # Adds labels with git repository information to the built image
# add_git_labels: true
# - name: hyperf-7.4-alpine-v3.11-swoole-sshd-yasd-dev
# uses: docker/build-push-action@v1.1.0
# with:
# # Username used to log in to a Docker registry. If not set then no login will occur
# username: adockero
# # Password or personal access token used to log in to a Docker registry. If not set then no login will occur
# password: ${{ secrets.PASSWORD }}
# # Docker repository to tag the image with
# repository: adockero/hyperf
# # Comma-delimited list of tags. These will be added to the registry/repository to form the image's tags
# tags: 7.4-alpine-v3.11-swoole-sshd-dev
# # Path to the Dockerfile (Default is '{path}/Dockerfile')
# path: ./
# dockerfile: hyperf/Dockerfile.sshd
# # Always attempt to pull a newer version of the image
# always_pull: true
# # 构建参数
# build_args: BASE_FORM=adockero/hyperf:7.4-alpine-v3.11-swoole-yasd-dev
# # Adds labels with git repository information to the built image
# add_git_labels: true