mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-07-20 15:25:36 +08:00
return to 1 file multi build
This commit is contained in:
121
.github/workflows/build-php.yml
vendored
Normal file
121
.github/workflows/build-php.yml
vendored
Normal file
@@ -0,0 +1,121 @@
|
|||||||
|
name: Build PHP
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches: [ master ]
|
||||||
|
pull_request:
|
||||||
|
branches: [ master ]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build-72:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
- name: Build PHP 7.2.34
|
||||||
|
run: cd docker/ && docker build . --file Dockerfile --tag static-php --build-arg USE_BACKUP_ADDRESS=yes --build-arg COMPILE_PHP_VERSION=7.2.34
|
||||||
|
- name: Push PHP 7.2.34 to dist
|
||||||
|
run: |
|
||||||
|
mkdir dist && docker run --rm -v $(pwd)/dist:/dist/ static-php cp php-dist/bin/php /dist/
|
||||||
|
cd dist && tar -zcvf "php-7.2.34-static-bin-x86_64.tar.gz" ./php && rm ./php
|
||||||
|
- name: Change Dockerfile to aarch64
|
||||||
|
run: cd docker/ && sed -ie 's/alpine:latest/multiarch\/alpine:aarch64-edge/g' Dockerfile && docker run --rm --privileged multiarch/qemu-user-static:register --reset
|
||||||
|
- name: Build PHP 7.2.34 arm
|
||||||
|
run: cd docker/ && docker build . --file Dockerfile --tag static-php-arm --build-arg USE_BACKUP_ADDRESS=yes --build-arg COMPILE_PHP_VERSION=7.2.34
|
||||||
|
- name: Push PHP 7.2.34 arm to dist
|
||||||
|
run: |
|
||||||
|
docker run --rm -v $(pwd)/dist:/dist/ static-php-arm cp php-dist/bin/php /dist/
|
||||||
|
cd dist && tar -zcvf "php-7.2.34-static-bin-aarch64.tar.gz" ./php && rm ./php
|
||||||
|
- name: Deploy to Zhamao Server
|
||||||
|
uses: easingthemes/ssh-deploy@main
|
||||||
|
env:
|
||||||
|
SSH_PRIVATE_KEY: ${{ secrets.DEPLOY_SERVER_SECRET_KEY }}
|
||||||
|
ARGS: "-rltgoDzvO"
|
||||||
|
SOURCE: "dist/"
|
||||||
|
REMOTE_HOST: ${{ secrets.DEPLOY_SERVER_HOST }}
|
||||||
|
REMOTE_PORT: ${{ secrets.DEPLOY_SERVER_PORT }}
|
||||||
|
REMOTE_USER: ${{ secrets.DEPLOY_SERVER_USER }}
|
||||||
|
TARGET: ${{ secrets.DEPLOY_SERVER_TARGET }}
|
||||||
|
build-73:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
- name: Build PHP 7.3.30
|
||||||
|
run: cd docker/ && docker build . --file Dockerfile --tag static-php --build-arg USE_BACKUP_ADDRESS=yes --build-arg COMPILE_PHP_VERSION=7.3.30
|
||||||
|
- name: Push PHP 7.3.30 to dist
|
||||||
|
run: |
|
||||||
|
mkdir dist && docker run --rm -v $(pwd)/dist:/dist/ static-php cp php-dist/bin/php /dist/
|
||||||
|
cd dist && tar -zcvf "php-7.3.30-static-bin-x86_64.tar.gz" ./php && rm ./php
|
||||||
|
- name: Change Dockerfile to aarch64
|
||||||
|
run: cd docker/ && sed -ie 's/alpine:latest/multiarch\/alpine:aarch64-edge/g' Dockerfile && docker run --rm --privileged multiarch/qemu-user-static:register --reset
|
||||||
|
- name: Build PHP 7.3.30 arm
|
||||||
|
run: cd docker/ && docker build . --file Dockerfile --tag static-php-arm --build-arg USE_BACKUP_ADDRESS=yes --build-arg COMPILE_PHP_VERSION=7.3.30
|
||||||
|
- name: Push PHP 7.3.30 arm to dist
|
||||||
|
run: |
|
||||||
|
docker run --rm -v $(pwd)/dist:/dist/ static-php-arm cp php-dist/bin/php /dist/
|
||||||
|
cd dist && tar -zcvf "php-7.3.30-static-bin-aarch64.tar.gz" ./php && rm ./php
|
||||||
|
- name: Deploy to Zhamao Server
|
||||||
|
uses: easingthemes/ssh-deploy@main
|
||||||
|
env:
|
||||||
|
SSH_PRIVATE_KEY: ${{ secrets.DEPLOY_SERVER_SECRET_KEY }}
|
||||||
|
ARGS: "-rltgoDzvO"
|
||||||
|
SOURCE: "dist/"
|
||||||
|
REMOTE_HOST: ${{ secrets.DEPLOY_SERVER_HOST }}
|
||||||
|
REMOTE_PORT: ${{ secrets.DEPLOY_SERVER_PORT }}
|
||||||
|
REMOTE_USER: ${{ secrets.DEPLOY_SERVER_USER }}
|
||||||
|
TARGET: ${{ secrets.DEPLOY_SERVER_TARGET }}
|
||||||
|
build-74:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
- name: Build PHP 7.4.23
|
||||||
|
run: cd docker/ && docker build . --file Dockerfile --tag static-php --build-arg USE_BACKUP_ADDRESS=yes --build-arg COMPILE_PHP_VERSION=7.4.23
|
||||||
|
- name: Push PHP 7.4.23 to dist
|
||||||
|
run: |
|
||||||
|
mkdir dist && docker run --rm -v $(pwd)/dist:/dist/ static-php cp php-dist/bin/php /dist/
|
||||||
|
cd dist && tar -zcvf "php-7.4.23-static-bin-x86_64.tar.gz" ./php && rm ./php
|
||||||
|
- name: Change Dockerfile to aarch64
|
||||||
|
run: cd docker/ && sed -ie 's/alpine:latest/multiarch\/alpine:aarch64-edge/g' Dockerfile && docker run --rm --privileged multiarch/qemu-user-static:register --reset
|
||||||
|
- name: Build PHP 7.4.23 arm
|
||||||
|
run: cd docker/ && docker build . --file Dockerfile --tag static-php-arm --build-arg USE_BACKUP_ADDRESS=yes --build-arg COMPILE_PHP_VERSION=7.4.23
|
||||||
|
- name: Push PHP 7.4.23 arm to dist
|
||||||
|
run: |
|
||||||
|
docker run --rm -v $(pwd)/dist:/dist/ static-php-arm cp php-dist/bin/php /dist/
|
||||||
|
cd dist && tar -zcvf "php-7.4.23-static-bin-aarch64.tar.gz" ./php && rm ./php
|
||||||
|
- name: Deploy to Zhamao Server
|
||||||
|
uses: easingthemes/ssh-deploy@main
|
||||||
|
env:
|
||||||
|
SSH_PRIVATE_KEY: ${{ secrets.DEPLOY_SERVER_SECRET_KEY }}
|
||||||
|
ARGS: "-rltgoDzvO"
|
||||||
|
SOURCE: "dist/"
|
||||||
|
REMOTE_HOST: ${{ secrets.DEPLOY_SERVER_HOST }}
|
||||||
|
REMOTE_PORT: ${{ secrets.DEPLOY_SERVER_PORT }}
|
||||||
|
REMOTE_USER: ${{ secrets.DEPLOY_SERVER_USER }}
|
||||||
|
TARGET: ${{ secrets.DEPLOY_SERVER_TARGET }}
|
||||||
|
build-80:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
- name: Build PHP 8.0.10
|
||||||
|
run: cd docker/ && docker build . --file Dockerfile --tag static-php --build-arg USE_BACKUP_ADDRESS=yes --build-arg COMPILE_PHP_VERSION=8.0.10
|
||||||
|
- name: Push PHP 8.0.10 to dist
|
||||||
|
run: |
|
||||||
|
mkdir dist && docker run --rm -v $(pwd)/dist:/dist/ static-php cp php-dist/bin/php /dist/
|
||||||
|
cd dist && tar -zcvf "php-8.0.10-static-bin-x86_64.tar.gz" ./php && rm ./php
|
||||||
|
- name: Change Dockerfile to aarch64
|
||||||
|
run: cd docker/ && sed -ie 's/alpine:latest/multiarch\/alpine:aarch64-edge/g' Dockerfile && docker run --rm --privileged multiarch/qemu-user-static:register --reset
|
||||||
|
- name: Build PHP 8.0.10 arm
|
||||||
|
run: cd docker/ && docker build . --file Dockerfile --tag static-php-arm --build-arg USE_BACKUP_ADDRESS=yes --build-arg COMPILE_PHP_VERSION=8.0.10
|
||||||
|
- name: Push PHP 8.0.10 arm to dist
|
||||||
|
run: |
|
||||||
|
docker run --rm -v $(pwd)/dist:/dist/ static-php-arm cp php-dist/bin/php /dist/
|
||||||
|
cd dist && tar -zcvf "php-8.0.10-static-bin-aarch64.tar.gz" ./php && rm ./php
|
||||||
|
- name: Deploy to Zhamao Server
|
||||||
|
uses: easingthemes/ssh-deploy@main
|
||||||
|
env:
|
||||||
|
SSH_PRIVATE_KEY: ${{ secrets.DEPLOY_SERVER_SECRET_KEY }}
|
||||||
|
ARGS: "-rltgoDzvO"
|
||||||
|
SOURCE: "dist/"
|
||||||
|
REMOTE_HOST: ${{ secrets.DEPLOY_SERVER_HOST }}
|
||||||
|
REMOTE_PORT: ${{ secrets.DEPLOY_SERVER_PORT }}
|
||||||
|
REMOTE_USER: ${{ secrets.DEPLOY_SERVER_USER }}
|
||||||
|
TARGET: ${{ secrets.DEPLOY_SERVER_TARGET }}
|
||||||
40
.github/workflows/php-7.2.yml
vendored
40
.github/workflows/php-7.2.yml
vendored
@@ -1,40 +0,0 @@
|
|||||||
name: Build PHP 7.2.34
|
|
||||||
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
branches: [ master ]
|
|
||||||
pull_request:
|
|
||||||
branches: [ master ]
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
|
|
||||||
build:
|
|
||||||
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v2
|
|
||||||
- name: Build PHP 7.2.34
|
|
||||||
run: cd docker/ && docker build . --file Dockerfile --tag static-php --build-arg USE_BACKUP_ADDRESS=yes --build-arg COMPILE_PHP_VERSION=7.2.34
|
|
||||||
- name: Push PHP 7.2.34 to dist
|
|
||||||
run: |
|
|
||||||
mkdir dist && docker run --rm -v $(pwd)/dist:/dist/ static-php cp php-dist/bin/php /dist/
|
|
||||||
cd dist && tar -zcvf "php-7.2.34-static-bin-x86_64.tar.gz" ./php && rm ./php
|
|
||||||
- name: Change Dockerfile to aarch64
|
|
||||||
run: cd docker/ && sed -ie 's/alpine:latest/multiarch\/alpine:aarch64-edge/g' Dockerfile && docker run --rm --privileged multiarch/qemu-user-static:register --reset
|
|
||||||
- name: Build PHP 7.2.34 arm
|
|
||||||
run: cd docker/ && docker build . --file Dockerfile --tag static-php-arm --build-arg USE_BACKUP_ADDRESS=yes --build-arg COMPILE_PHP_VERSION=7.2.34
|
|
||||||
- name: Push PHP 7.2.34 arm to dist
|
|
||||||
run: |
|
|
||||||
docker run --rm -v $(pwd)/dist:/dist/ static-php-arm cp php-dist/bin/php /dist/
|
|
||||||
cd dist && tar -zcvf "php-7.2.34-static-bin-aarch64.tar.gz" ./php && rm ./php
|
|
||||||
- name: Deploy to Zhamao Server
|
|
||||||
uses: easingthemes/ssh-deploy@main
|
|
||||||
env:
|
|
||||||
SSH_PRIVATE_KEY: ${{ secrets.DEPLOY_SERVER_SECRET_KEY }}
|
|
||||||
ARGS: "-rltgoDzvO"
|
|
||||||
SOURCE: "dist/"
|
|
||||||
REMOTE_HOST: ${{ secrets.DEPLOY_SERVER_HOST }}
|
|
||||||
REMOTE_PORT: ${{ secrets.DEPLOY_SERVER_PORT }}
|
|
||||||
REMOTE_USER: ${{ secrets.DEPLOY_SERVER_USER }}
|
|
||||||
TARGET: ${{ secrets.DEPLOY_SERVER_TARGET }}
|
|
||||||
40
.github/workflows/php-7.3.yml
vendored
40
.github/workflows/php-7.3.yml
vendored
@@ -1,40 +0,0 @@
|
|||||||
name: Build PHP 7.3.30
|
|
||||||
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
branches: [ master ]
|
|
||||||
pull_request:
|
|
||||||
branches: [ master ]
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
|
|
||||||
build:
|
|
||||||
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v2
|
|
||||||
- name: Build PHP 7.3.30
|
|
||||||
run: cd docker/ && docker build . --file Dockerfile --tag static-php --build-arg USE_BACKUP_ADDRESS=yes --build-arg COMPILE_PHP_VERSION=7.3.30
|
|
||||||
- name: Push PHP 7.3.30 to dist
|
|
||||||
run: |
|
|
||||||
mkdir dist && docker run --rm -v $(pwd)/dist:/dist/ static-php cp php-dist/bin/php /dist/
|
|
||||||
cd dist && tar -zcvf "php-7.3.30-static-bin-x86_64.tar.gz" ./php && rm ./php
|
|
||||||
- name: Change Dockerfile to aarch64
|
|
||||||
run: cd docker/ && sed -ie 's/alpine:latest/multiarch\/alpine:aarch64-edge/g' Dockerfile && docker run --rm --privileged multiarch/qemu-user-static:register --reset
|
|
||||||
- name: Build PHP 7.3.30 arm
|
|
||||||
run: cd docker/ && docker build . --file Dockerfile --tag static-php-arm --build-arg USE_BACKUP_ADDRESS=yes --build-arg COMPILE_PHP_VERSION=7.3.30
|
|
||||||
- name: Push PHP 7.3.30 arm to dist
|
|
||||||
run: |
|
|
||||||
docker run --rm -v $(pwd)/dist:/dist/ static-php-arm cp php-dist/bin/php /dist/
|
|
||||||
cd dist && tar -zcvf "php-7.3.30-static-bin-aarch64.tar.gz" ./php && rm ./php
|
|
||||||
- name: Deploy to Zhamao Server
|
|
||||||
uses: easingthemes/ssh-deploy@main
|
|
||||||
env:
|
|
||||||
SSH_PRIVATE_KEY: ${{ secrets.DEPLOY_SERVER_SECRET_KEY }}
|
|
||||||
ARGS: "-rltgoDzvO"
|
|
||||||
SOURCE: "dist/"
|
|
||||||
REMOTE_HOST: ${{ secrets.DEPLOY_SERVER_HOST }}
|
|
||||||
REMOTE_PORT: ${{ secrets.DEPLOY_SERVER_PORT }}
|
|
||||||
REMOTE_USER: ${{ secrets.DEPLOY_SERVER_USER }}
|
|
||||||
TARGET: ${{ secrets.DEPLOY_SERVER_TARGET }}
|
|
||||||
40
.github/workflows/php-7.4.yml
vendored
40
.github/workflows/php-7.4.yml
vendored
@@ -1,40 +0,0 @@
|
|||||||
name: Build PHP 7.4.23
|
|
||||||
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
branches: [ master ]
|
|
||||||
pull_request:
|
|
||||||
branches: [ master ]
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
|
|
||||||
build:
|
|
||||||
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v2
|
|
||||||
- name: Build PHP 7.4.23
|
|
||||||
run: cd docker/ && docker build . --file Dockerfile --tag static-php --build-arg USE_BACKUP_ADDRESS=yes --build-arg COMPILE_PHP_VERSION=7.4.23
|
|
||||||
- name: Push PHP 7.4.23 to dist
|
|
||||||
run: |
|
|
||||||
mkdir dist && docker run --rm -v $(pwd)/dist:/dist/ static-php cp php-dist/bin/php /dist/
|
|
||||||
cd dist && tar -zcvf "php-7.4.23-static-bin-x86_64.tar.gz" ./php && rm ./php
|
|
||||||
- name: Change Dockerfile to aarch64
|
|
||||||
run: cd docker/ && sed -ie 's/alpine:latest/multiarch\/alpine:aarch64-edge/g' Dockerfile && docker run --rm --privileged multiarch/qemu-user-static:register --reset
|
|
||||||
- name: Build PHP 7.4.23 arm
|
|
||||||
run: cd docker/ && docker build . --file Dockerfile --tag static-php-arm --build-arg USE_BACKUP_ADDRESS=yes --build-arg COMPILE_PHP_VERSION=7.4.23
|
|
||||||
- name: Push PHP 7.4.23 arm to dist
|
|
||||||
run: |
|
|
||||||
docker run --rm -v $(pwd)/dist:/dist/ static-php-arm cp php-dist/bin/php /dist/
|
|
||||||
cd dist && tar -zcvf "php-7.4.23-static-bin-aarch64.tar.gz" ./php && rm ./php
|
|
||||||
- name: Deploy to Zhamao Server
|
|
||||||
uses: easingthemes/ssh-deploy@main
|
|
||||||
env:
|
|
||||||
SSH_PRIVATE_KEY: ${{ secrets.DEPLOY_SERVER_SECRET_KEY }}
|
|
||||||
ARGS: "-rltgoDzvO"
|
|
||||||
SOURCE: "dist/"
|
|
||||||
REMOTE_HOST: ${{ secrets.DEPLOY_SERVER_HOST }}
|
|
||||||
REMOTE_PORT: ${{ secrets.DEPLOY_SERVER_PORT }}
|
|
||||||
REMOTE_USER: ${{ secrets.DEPLOY_SERVER_USER }}
|
|
||||||
TARGET: ${{ secrets.DEPLOY_SERVER_TARGET }}
|
|
||||||
40
.github/workflows/php-8.0.yml
vendored
40
.github/workflows/php-8.0.yml
vendored
@@ -1,40 +0,0 @@
|
|||||||
name: Build PHP 8.0.10
|
|
||||||
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
branches: [ master ]
|
|
||||||
pull_request:
|
|
||||||
branches: [ master ]
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
|
|
||||||
build:
|
|
||||||
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v2
|
|
||||||
- name: Build PHP 8.0.10
|
|
||||||
run: cd docker/ && docker build . --file Dockerfile --tag static-php --build-arg USE_BACKUP_ADDRESS=yes --build-arg COMPILE_PHP_VERSION=8.0.10
|
|
||||||
- name: Push PHP 8.0.10 to dist
|
|
||||||
run: |
|
|
||||||
mkdir dist && docker run --rm -v $(pwd)/dist:/dist/ static-php cp php-dist/bin/php /dist/
|
|
||||||
cd dist && tar -zcvf "php-8.0.10-static-bin-x86_64.tar.gz" ./php && rm ./php
|
|
||||||
- name: Change Dockerfile to aarch64
|
|
||||||
run: cd docker/ && sed -ie 's/alpine:latest/multiarch\/alpine:aarch64-edge/g' Dockerfile && docker run --rm --privileged multiarch/qemu-user-static:register --reset
|
|
||||||
- name: Build PHP 8.0.10 arm
|
|
||||||
run: cd docker/ && docker build . --file Dockerfile --tag static-php-arm --build-arg USE_BACKUP_ADDRESS=yes --build-arg COMPILE_PHP_VERSION=8.0.10
|
|
||||||
- name: Push PHP 8.0.10 arm to dist
|
|
||||||
run: |
|
|
||||||
docker run --rm -v $(pwd)/dist:/dist/ static-php-arm cp php-dist/bin/php /dist/
|
|
||||||
cd dist && tar -zcvf "php-8.0.10-static-bin-aarch64.tar.gz" ./php && rm ./php
|
|
||||||
- name: Deploy to Zhamao Server
|
|
||||||
uses: easingthemes/ssh-deploy@main
|
|
||||||
env:
|
|
||||||
SSH_PRIVATE_KEY: ${{ secrets.DEPLOY_SERVER_SECRET_KEY }}
|
|
||||||
ARGS: "-rltgoDzvO"
|
|
||||||
SOURCE: "dist/"
|
|
||||||
REMOTE_HOST: ${{ secrets.DEPLOY_SERVER_HOST }}
|
|
||||||
REMOTE_PORT: ${{ secrets.DEPLOY_SERVER_PORT }}
|
|
||||||
REMOTE_USER: ${{ secrets.DEPLOY_SERVER_USER }}
|
|
||||||
TARGET: ${{ secrets.DEPLOY_SERVER_TARGET }}
|
|
||||||
Reference in New Issue
Block a user