|
13 | 13 | ubuntu-release-name: ['jammy', 'noble'] |
14 | 14 | environment: |
15 | 15 | name: Build |
16 | | - runs-on: ubuntu-22.04 |
| 16 | + runs-on: ubuntu-latest |
17 | 17 | steps: |
18 | 18 | - name: Checkout |
19 | 19 | uses: actions/checkout@v4 |
|
54 | 54 | uses: docker/build-push-action@v6 |
55 | 55 | with: |
56 | 56 | push: false |
57 | | - platforms: linux/amd64 |
| 57 | + platforms: linux/amd64,linux/arm64 |
58 | 58 | build-args: | |
59 | 59 | PHP_VERSION=${{ matrix.version }} |
60 | 60 | UBUNTU_RELEASE_NAME=${{ matrix.ubuntu-release-name }} |
|
66 | 66 | uses: docker/build-push-action@v6 |
67 | 67 | with: |
68 | 68 | push: false |
69 | | - platforms: linux/amd64 |
70 | | - build-args: | |
71 | | - PHP_VERSION=${{ matrix.version }} |
72 | | - UBUNTU_RELEASE_NAME=${{ matrix.ubuntu-release-name }} |
73 | | - tags: ${{ steps.meta-others.outputs.tags }} |
74 | | - labels: ${{ steps.meta-others.outputs.labels }} |
75 | | - |
76 | | - Build_PHP_Ubuntu_Test_ARM: |
77 | | - strategy: |
78 | | - matrix: |
79 | | - version: ['7.0', '7.1', '7.2', '7.3', '7.4', '8.0', '8.1', '8.2', '8.3'] |
80 | | - ubuntu-release-name: ['jammy', 'noble'] |
81 | | - environment: |
82 | | - name: Build |
83 | | - runs-on: ubuntu-22.04-arm |
84 | | - steps: |
85 | | - - name: Checkout |
86 | | - uses: actions/checkout@v4 |
87 | | - with: |
88 | | - ref: ${{ github.ref }} |
89 | | - |
90 | | - - name: Set up QEMU |
91 | | - uses: docker/setup-qemu-action@v3 |
92 | | - |
93 | | - - name: Set up Docker Buildx |
94 | | - uses: docker/setup-buildx-action@v3 |
95 | | - |
96 | | - - name: Extract metadata (tags, labels) for Docker (Jammy) |
97 | | - if: matrix.ubuntu-release-name == 'jammy' |
98 | | - id: meta-jammy |
99 | | - uses: docker/metadata-action@v5 |
100 | | - with: |
101 | | - tags: | |
102 | | - type=raw,pattern={{version}},value=${{ matrix.version }}-${{ matrix.ubuntu-release-name }} |
103 | | - type=raw,pattern={{version}},value=${{ matrix.version }}-ubuntu |
104 | | - images: | |
105 | | - ${{ secrets.IMAGE_NAME }} |
106 | | - ghcr.io/${{ github.repository }} |
107 | | -
|
108 | | - - name: Extract metadata (tags, labels) for Docker (Others) |
109 | | - if: matrix.ubuntu-release-name != 'jammy' |
110 | | - id: meta-others |
111 | | - uses: docker/metadata-action@v5 |
112 | | - with: |
113 | | - tags: | |
114 | | - type=raw,pattern={{version}},value=${{ matrix.version }}-${{ matrix.ubuntu-release-name }} |
115 | | - images: | |
116 | | - ${{ secrets.IMAGE_NAME }} |
117 | | - ghcr.io/${{ github.repository }} |
118 | | -
|
119 | | - - name: Build and push Docker images (Jammy) |
120 | | - if: matrix.ubuntu-release-name == 'jammy' |
121 | | - uses: docker/build-push-action@v6 |
122 | | - with: |
123 | | - push: false |
124 | | - platforms: linux/arm64,linux/amd64 |
125 | | - build-args: | |
126 | | - PHP_VERSION=${{ matrix.version }} |
127 | | - UBUNTU_RELEASE_NAME=${{ matrix.ubuntu-release-name }} |
128 | | - tags: ${{ steps.meta-jammy.outputs.tags }} |
129 | | - labels: ${{ steps.meta-jammy.outputs.labels }} |
130 | | - |
131 | | - - name: Build and push Docker images (Others) |
132 | | - if: matrix.ubuntu-release-name != 'jammy' |
133 | | - uses: docker/build-push-action@v6 |
134 | | - with: |
135 | | - push: false |
136 | | - platforms: linux/arm64,linux/amd64 |
| 69 | + platforms: linux/amd64,linux/arm64 |
137 | 70 | build-args: | |
138 | 71 | PHP_VERSION=${{ matrix.version }} |
139 | 72 | UBUNTU_RELEASE_NAME=${{ matrix.ubuntu-release-name }} |
|
0 commit comments