|
| 1 | + |
| 2 | +name: 构建和提交docker-8.4-php |
| 3 | + |
| 4 | +on: |
| 5 | + push: |
| 6 | + branches: |
| 7 | + - master |
| 8 | + paths: |
| 9 | + - "**" |
| 10 | + - "./*" |
| 11 | + - "!openresty/**" |
| 12 | + - "!other/**" |
| 13 | + - "!docker-build/**" |
| 14 | + - "!.github/workflows/*.yml" |
| 15 | + - ".github/workflows/docker-8.4-php.yml" |
| 16 | + |
| 17 | +jobs: |
| 18 | + setup-build-publish: |
| 19 | + runs-on: ubuntu-latest |
| 20 | + name: 构建和推送docker镜像 |
| 21 | + steps: |
| 22 | + |
| 23 | + |
| 24 | + - |
| 25 | + name: 登录 Docker Hub |
| 26 | + uses: docker/login-action@v2 |
| 27 | + with: |
| 28 | + username: adockero |
| 29 | + password: ${{ secrets.PASSWORD }} |
| 30 | + |
| 31 | + |
| 32 | + |
| 33 | + |
| 34 | + - name: Checkout |
| 35 | + # 使用action库 actions/checkout获取源码 |
| 36 | + uses: actions/checkout@v2.3.2 |
| 37 | + |
| 38 | + |
| 39 | + |
| 40 | + |
| 41 | + |
| 42 | +# ---------------dev--alpine---start--------------------- |
| 43 | + |
| 44 | + |
| 45 | + - name: 8.3-alpine-php-dev-not-ssh |
| 46 | + uses: docker/build-push-action@v3 |
| 47 | + with: |
| 48 | + # Comma-delimited list of tags. These will be added to the registry/repository to form the image's tags |
| 49 | + tags: | |
| 50 | + adockero/php-nginx:8.4-alpine-php-dev-not-ssh |
| 51 | + # pull: true |
| 52 | + # push: false |
| 53 | + push: true |
| 54 | + context: ./ |
| 55 | + # Path to the Dockerfile (Default is '{path}/Dockerfile') |
| 56 | + # path: ./dockerfile |
| 57 | + file: Dockerfile.base |
| 58 | + # Comma-delimited list of build-time variables |
| 59 | + build-args: FROM_ARG=webdevops/php-dev:8.4-alpine |
| 60 | + # Adds labels with git repository information to the built image |
| 61 | + labels: true |
| 62 | + |
| 63 | + |
| 64 | + |
| 65 | + - name: 8.4-alpine-php-dev-not-ssh-fpm |
| 66 | + uses: docker/build-push-action@v3 |
| 67 | + with: |
| 68 | + # Comma-delimited list of tags. These will be added to the registry/repository to form the image's tags |
| 69 | + tags: | |
| 70 | + adockero/php-nginx:8.4-alpine-php-dev-not-ssh-fpm |
| 71 | + # pull: false |
| 72 | + # push: true |
| 73 | + push: true |
| 74 | + context: ./ |
| 75 | + # Path to the Dockerfile (Default is '{path}/Dockerfile') |
| 76 | + # path: ./dockerfile |
| 77 | + file: Dockerfile.base.fpm |
| 78 | + # Comma-delimited list of build-time variables |
| 79 | + build-args: FROM_ARG=adockero/php-nginx:8.4-alpine-php-dev-not-ssh |
| 80 | + # Adds labels with git repository information to the built image |
| 81 | + labels: true |
| 82 | + |
| 83 | + |
| 84 | + - name: 8.4-alpine-php-dev |
| 85 | + uses: docker/build-push-action@v3 |
| 86 | + with: |
| 87 | + # Comma-delimited list of tags. These will be added to the registry/repository to form the image's tags |
| 88 | + tags: | |
| 89 | + adockero/php-nginx:8.4-alpine-php-dev |
| 90 | + # pull: false |
| 91 | + # push: true |
| 92 | + push: true |
| 93 | + context: ./ |
| 94 | + # Path to the Dockerfile (Default is '{path}/Dockerfile') |
| 95 | + # path: ./dockerfile |
| 96 | + file: Dockerfile.sshd |
| 97 | + # Comma-delimited list of build-time variables |
| 98 | + build-args: FROM_ARG=adockero/php-nginx:8.4-alpine-php-dev-not-ssh-fpm |
| 99 | + # Adds labels with git repository information to the built image |
| 100 | + labels: true |
| 101 | + |
| 102 | + |
| 103 | + - name: 8.4-alpine-php-dev-ffmpeg |
| 104 | + uses: docker/build-push-action@v3 |
| 105 | + with: |
| 106 | + # Comma-delimited list of tags. These will be added to the registry/repository to form the image's tags |
| 107 | + tags: | |
| 108 | + adockero/php-nginx:8.4-alpine-php-dev-ffmpeg |
| 109 | + # pull: false |
| 110 | + # push: true |
| 111 | + push: true |
| 112 | + context: ./ |
| 113 | + # Path to the Dockerfile (Default is '{path}/Dockerfile') |
| 114 | + # path: ./dockerfile |
| 115 | + file: Dockerfile.build-dir |
| 116 | + # Comma-delimited list of build-time variables |
| 117 | + build-args: | |
| 118 | + FROM_ARG=adockero/php-nginx:8.4-alpine-php-dev |
| 119 | + BUILD_SCRIPT_ARG=install-ffmpeg.sh |
| 120 | + # Adds labels with git repository information to the built image |
| 121 | + labels: true |
| 122 | + |
| 123 | +# ---------------dev--alpine---end--------------------- |
| 124 | + |
| 125 | +# ---------------dev--ubuntu---start--------------------- |
| 126 | + |
| 127 | + |
| 128 | + - name: 8.4-ubuntu-php-dev-not-ssh |
| 129 | + uses: docker/build-push-action@v3 |
| 130 | + with: |
| 131 | + # Comma-delimited list of tags. These will be added to the registry/repository to form the image's tags |
| 132 | + tags: | |
| 133 | + adockero/php-nginx:8.4-ubuntu-php-dev-not-ssh |
| 134 | + # pull: true |
| 135 | + # push: false |
| 136 | + push: true |
| 137 | + context: ./ |
| 138 | + # Path to the Dockerfile (Default is '{path}/Dockerfile') |
| 139 | + # path: ./dockerfile |
| 140 | + file: Dockerfile.base |
| 141 | + # Comma-delimited list of build-time variables |
| 142 | + build-args: FROM_ARG=webdevops/php-dev:8.4 |
| 143 | + # Adds labels with git repository information to the built image |
| 144 | + labels: true |
| 145 | + |
| 146 | + |
| 147 | + - name: 8.4-ubuntu-php-dev-not-ssh-fpm |
| 148 | + uses: docker/build-push-action@v3 |
| 149 | + with: |
| 150 | + # Comma-delimited list of tags. These will be added to the registry/repository to form the image's tags |
| 151 | + tags: | |
| 152 | + adockero/php-nginx:8.4-ubuntu-php-dev-not-ssh-fpm |
| 153 | + # pull: false |
| 154 | + # push: true |
| 155 | + push: true |
| 156 | + context: ./ |
| 157 | + # Path to the Dockerfile (Default is '{path}/Dockerfile') |
| 158 | + # path: ./dockerfile |
| 159 | + file: Dockerfile.base.fpm |
| 160 | + # Comma-delimited list of build-time variables |
| 161 | + build-args: FROM_ARG=adockero/php-nginx:8.4-ubuntu-php-dev-not-ssh |
| 162 | + # Adds labels with git repository information to the built image |
| 163 | + labels: true |
| 164 | + |
| 165 | + |
| 166 | + - name: 8.4-ubuntu-php-dev |
| 167 | + uses: docker/build-push-action@v3 |
| 168 | + with: |
| 169 | + # Comma-delimited list of tags. These will be added to the registry/repository to form the image's tags |
| 170 | + tags: | |
| 171 | + adockero/php-nginx:8.4-ubuntu-php-dev |
| 172 | + # pull: false |
| 173 | + # push: true |
| 174 | + push: true |
| 175 | + context: ./ |
| 176 | + # Path to the Dockerfile (Default is '{path}/Dockerfile') |
| 177 | + # path: ./dockerfile |
| 178 | + file: Dockerfile.sshd |
| 179 | + # Comma-delimited list of build-time variables |
| 180 | + build-args: FROM_ARG=adockero/php-nginx:8.4-ubuntu-php-dev-not-ssh-fpm |
| 181 | + # Adds labels with git repository information to the built image |
| 182 | + labels: true |
| 183 | + |
| 184 | + |
| 185 | + - name: 8.4-ubuntu-php-dev-ffmpeg |
| 186 | + uses: docker/build-push-action@v3 |
| 187 | + with: |
| 188 | + # Comma-delimited list of tags. These will be added to the registry/repository to form the image's tags |
| 189 | + tags: | |
| 190 | + adockero/php-nginx:8.4-ubuntu-php-dev-ffmpeg |
| 191 | + # pull: false |
| 192 | + # push: true |
| 193 | + push: true |
| 194 | + context: ./ |
| 195 | + # Path to the Dockerfile (Default is '{path}/Dockerfile') |
| 196 | + # path: ./dockerfile |
| 197 | + file: Dockerfile.build-dir |
| 198 | + # Comma-delimited list of build-time variables |
| 199 | + build-args: | |
| 200 | + FROM_ARG=adockero/php-nginx:8.4-ubuntu-php-dev |
| 201 | + BUILD_SCRIPT_ARG=install-ffmpeg.sh |
| 202 | + # Adds labels with git repository information to the built image |
| 203 | + labels: true |
| 204 | + |
| 205 | + # - name: 7.4-php-dev-not-ssh |
| 206 | + # uses: docker/build-push-action@v3 |
| 207 | + # with: |
| 208 | + # # Comma-delimited list of tags. These will be added to the registry/repository to form the image's tags |
| 209 | + # tags: | |
| 210 | + # adockero/php-nginx:7.4-php-dev-not-ssh |
| 211 | + # # pull: true |
| 212 | + # # push: false |
| 213 | + # push: true |
| 214 | + # context: ./ |
| 215 | + # # Path to the Dockerfile (Default is '{path}/Dockerfile') |
| 216 | + # # path: ./dockerfile |
| 217 | + # file: Dockerfile.base |
| 218 | + # # Comma-delimited list of build-time variables |
| 219 | + # build-args: FROM_ARG=webdevops/php-dev:7.4 |
| 220 | + # # Adds labels with git repository information to the built image |
| 221 | + # labels: true |
| 222 | + |
| 223 | + |
| 224 | + # - name: 7.4-php-dev |
| 225 | + # uses: docker/build-push-action@v3 |
| 226 | + # with: |
| 227 | + # # Comma-delimited list of tags. These will be added to the registry/repository to form the image's tags |
| 228 | + # tags: | |
| 229 | + # adockero/php-nginx:7.4-php-dev |
| 230 | + # # pull: false |
| 231 | + # # push: true |
| 232 | + # push: true |
| 233 | + # context: ./ |
| 234 | + # # Path to the Dockerfile (Default is '{path}/Dockerfile') |
| 235 | + # # path: ./dockerfile |
| 236 | + # file: Dockerfile.sshd |
| 237 | + # # Comma-delimited list of build-time variables |
| 238 | + # build-args: FROM_ARG=adockero/php-nginx:7.4-php-dev-not-ssh |
| 239 | + # # Adds labels with git repository information to the built image |
| 240 | + # labels: true |
| 241 | + # - name: 7.4-php-dev |
| 242 | + # uses: docker/build-push-action@v1.1.0 |
| 243 | + # with: |
| 244 | + # # Username used to log in to a Docker registry. If not set then no login will occur |
| 245 | + # username: adockero |
| 246 | + # # Password or personal access token used to log in to a Docker registry. If not set then no login will occur |
| 247 | + # password: ${{ secrets.PASSWORD }} |
| 248 | + # # Docker repository to tag the image with |
| 249 | + # repository: adockero/php-nginx |
| 250 | + # # Comma-delimited list of tags. These will be added to the registry/repository to form the image's tags |
| 251 | + # tags: 7.4-php-dev |
| 252 | + # # Path to the Dockerfile (Default is '{path}/Dockerfile') |
| 253 | + # # path: ./dockerfile |
| 254 | + # dockerfile: Dockerfile.base |
| 255 | + # # Always attempt to pull a newer version of the image |
| 256 | + # always_pull: true |
| 257 | + # # Comma-delimited list of build-time variables |
| 258 | + # build_args: FROM_ARG=webdevops/php-dev:7.4 |
| 259 | + # # Adds labels with git repository information to the built image |
| 260 | + # add_git_labels: true |
| 261 | + |
| 262 | + |
| 263 | + |
| 264 | +# ---------------dev--ubuntu---end--------------------- |
| 265 | + |
| 266 | + |
| 267 | + |
| 268 | + |
| 269 | + |
| 270 | +# ---------------正式---start--------------------- |
| 271 | + # - name: 7.4-php-alpine |
| 272 | + # uses: docker/build-push-action@v1.1.0 |
| 273 | + # with: |
| 274 | + # # Username used to log in to a Docker registry. If not set then no login will occur |
| 275 | + # username: adockero |
| 276 | + # # Password or personal access token used to log in to a Docker registry. If not set then no login will occur |
| 277 | + # password: ${{ secrets.PASSWORD }} |
| 278 | + # # Docker repository to tag the image with |
| 279 | + # repository: adockero/php-nginx |
| 280 | + # # Comma-delimited list of tags. These will be added to the registry/repository to form the image's tags |
| 281 | + # tags: 7.4-php-alpine |
| 282 | + # # Path to the Dockerfile (Default is '{path}/Dockerfile') |
| 283 | + # # path: ./dockerfile |
| 284 | + # dockerfile: Dockerfile.base |
| 285 | + # # Always attempt to pull a newer version of the image |
| 286 | + # # always_pull: true |
| 287 | + # # Comma-delimited list of build-time variables |
| 288 | + # build_args: FROM_ARG=webdevops/php:7.4-alpine |
| 289 | + # # Adds labels with git repository information to the built image |
| 290 | + # add_git_labels: true |
| 291 | + |
| 292 | + # - name: 7.4-php-alpine-close-service |
| 293 | + # uses: docker/build-push-action@v1.1.0 |
| 294 | + # with: |
| 295 | + # # Username used to log in to a Docker registry. If not set then no login will occur |
| 296 | + # username: adockero |
| 297 | + # # Password or personal access token used to log in to a Docker registry. If not set then no login will occur |
| 298 | + # password: ${{ secrets.PASSWORD }} |
| 299 | + # # Docker repository to tag the image with |
| 300 | + # repository: adockero/php-nginx |
| 301 | + # # Comma-delimited list of tags. These will be added to the registry/repository to form the image's tags |
| 302 | + # tags: 7.4-php-alpine-close-service |
| 303 | + # # Path to the Dockerfile (Default is '{path}/Dockerfile') |
| 304 | + # # path: ./dockerfile |
| 305 | + # dockerfile: Dockerfile.base.close-service |
| 306 | + # # Always attempt to pull a newer version of the image |
| 307 | + # # always_pull: true |
| 308 | + # # Comma-delimited list of build-time variables |
| 309 | + # build_args: FROM_ARG=adockero/php-nginx:7.4-php-alpine |
| 310 | + # # Adds labels with git repository information to the built image |
| 311 | + # add_git_labels: true |
| 312 | +# ---------------正式---end--------------------- |
| 313 | + |
| 314 | + |
| 315 | + |
| 316 | + |
0 commit comments