|
6 | 6 | - '*' |
7 | 7 |
|
8 | 8 | jobs: |
9 | | - release: |
| 9 | + release-amd64: |
10 | 10 | runs-on: ubuntu-latest |
11 | 11 | strategy: |
12 | 12 | matrix: |
13 | 13 | php_version: ['8.1', '8.2', '8.3', '8.4'] |
14 | 14 | steps: |
15 | 15 | - uses: actions/checkout@v4 |
16 | 16 | - uses: docker/setup-qemu-action@v3 |
17 | | - - uses: docker/setup-buildx-action@v3 |
18 | 17 | - name: Sign into Docker |
19 | 18 | run: echo ${{ secrets.DOCKER_PASSWORD }} | docker login -u ${{ secrets.DOCKER_USERNAME }} --password-stdin |
20 | | - - name: Build Docker image and push to Docker Hub |
21 | | - run: docker buildx build --push -t justintime50/nginx-php:${{ matrix.php_version }}-${GITHUB_REF##*/} --build-arg PHP_VERSION=${{ matrix.php_version }} --platform linux/amd64,linux/arm/v7,linux/arm64 . |
| 19 | + - name: Build Docker image |
| 20 | + run: docker build -t justintime50/nginx-php:${{ matrix.php_version }}-${GITHUB_REF##*/} --build-arg PHP_VERSION=${{ matrix.php_version }} --platform linux/amd64 . |
| 21 | + - name: Push image to Hub |
| 22 | + run: docker push justintime50/nginx-php:${{ matrix.php_version }}-${GITHUB_REF##*/} |
| 23 | + |
| 24 | + release-arm-v7: |
| 25 | + runs-on: ubuntu-latest |
| 26 | + strategy: |
| 27 | + matrix: |
| 28 | + php_version: ['8.1', '8.2', '8.3', '8.4'] |
| 29 | + steps: |
| 30 | + - uses: actions/checkout@v4 |
| 31 | + - uses: docker/setup-qemu-action@v3 |
| 32 | + - name: Sign into Docker |
| 33 | + run: echo ${{ secrets.DOCKER_PASSWORD }} | docker login -u ${{ secrets.DOCKER_USERNAME }} --password-stdin |
| 34 | + - name: Build Docker image |
| 35 | + run: docker build -t justintime50/nginx-php:${{ matrix.php_version }}-${GITHUB_REF##*/} --build-arg PHP_VERSION=${{ matrix.php_version }} --platform linux/arm/v7 . |
| 36 | + - name: Push image to Hub |
| 37 | + run: docker push justintime50/nginx-php:${{ matrix.php_version }}-${GITHUB_REF##*/} |
| 38 | + |
| 39 | + release-arm64: |
| 40 | + runs-on: ubuntu-latest |
| 41 | + strategy: |
| 42 | + matrix: |
| 43 | + php_version: ['8.1', '8.2', '8.3', '8.4'] |
| 44 | + steps: |
| 45 | + - uses: actions/checkout@v4 |
| 46 | + - uses: docker/setup-qemu-action@v3 |
| 47 | + - name: Sign into Docker |
| 48 | + run: echo ${{ secrets.DOCKER_PASSWORD }} | docker login -u ${{ secrets.DOCKER_USERNAME }} --password-stdin |
| 49 | + - name: Build Docker image |
| 50 | + run: docker build -t justintime50/nginx-php:${{ matrix.php_version }}-${GITHUB_REF##*/} --build-arg PHP_VERSION=${{ matrix.php_version }} --platform linux/arm64 . |
| 51 | + - name: Push image to Hub |
| 52 | + run: docker push justintime50/nginx-php:${{ matrix.php_version }}-${GITHUB_REF##*/} |
0 commit comments