|
3 | 3 | push:
|
4 | 4 | branches:
|
5 | 5 | - master
|
6 |
| - |
7 |
| -env: |
8 |
| - BUILDKIT_IMAGE: jkaninda/laravel-php-fpm |
9 | 6 | jobs:
|
10 | 7 | docker:
|
11 | 8 | runs-on: ubuntu-latest
|
12 | 9 | steps:
|
13 | 10 | -
|
14 | 11 | name: Set up QEMU
|
15 |
| - uses: docker/setup-qemu-action@v3 |
| 12 | + uses: docker/setup-qemu-action@v2 |
16 | 13 | -
|
17 | 14 | name: Set up Docker Buildx
|
18 |
| - uses: docker/setup-buildx-action@v3 |
| 15 | + uses: docker/setup-buildx-action@v2 |
19 | 16 | -
|
20 | 17 | name: Login to DockerHub
|
21 |
| - uses: docker/login-action@v3 |
| 18 | + uses: docker/login-action@v2 |
22 | 19 | with:
|
23 | 20 | username: ${{ secrets.DOCKERHUB_USERNAME }}
|
24 | 21 | password: ${{ secrets.DOCKERHUB_TOKEN }}
|
25 | 22 | -
|
26 |
| - name: Build and push 8.0 |
| 23 | + name: Build and push 8.1 |
27 | 24 | uses: docker/build-push-action@v3
|
28 | 25 | with:
|
29 |
| - file: "./src/docker/8.0/Dockerfile" |
| 26 | + file: "./src/docker/Dockerfile" |
30 | 27 | push: true
|
31 |
| - tags: "${{env.BUILDKIT_IMAGE}}:8.0" |
| 28 | + platforms: linux/amd64,linux/arm64 |
| 29 | + build-args: | |
| 30 | + phpVersion=8.1 |
| 31 | + tags: "${{ vars.BUILDKIT_IMAGE }}:8.1" |
32 | 32 | -
|
33 |
| - name: Build and push 8.1 |
| 33 | + name: Build and push 8.1 alpine |
34 | 34 | uses: docker/build-push-action@v3
|
35 | 35 | with:
|
36 |
| - file: "./src/docker/8.1/Dockerfile" |
| 36 | + file: "./src/docker/Dockerfile.alpine" |
37 | 37 | push: true
|
38 | 38 | platforms: linux/amd64,linux/arm64
|
39 |
| - tags: "${{env.BUILDKIT_IMAGE}}:8.1" |
| 39 | + build-args: | |
| 40 | + phpVersion=8.1 |
| 41 | + tags: "${{ vars.BUILDKIT_IMAGE }}:8.1-alpine" |
40 | 42 | -
|
41 | 43 | name: Build and push 8.2
|
42 | 44 | uses: docker/build-push-action@v3
|
43 | 45 | with:
|
44 |
| - file: "./src/docker/8.2/Dockerfile" |
| 46 | + file: "./src/docker/Dockerfile" |
45 | 47 | push: true
|
46 | 48 | platforms: linux/amd64,linux/arm64
|
47 |
| - tags: "${{env.BUILDKIT_IMAGE}}:8.2" |
| 49 | + build-args: | |
| 50 | + phpVersion=8.2 |
| 51 | + tags: "${{vars.BUILDKIT_IMAGE}}:8.2" |
48 | 52 | -
|
49 |
| - name: Build and push 8.1 alpine |
| 53 | + name: Build and push 8.2 alpine |
50 | 54 | uses: docker/build-push-action@v3
|
51 | 55 | with:
|
52 |
| - file: "./src/docker/8.1/Dockerfile.alpine" |
| 56 | + file: "./src/docker/Dockerfile.alpine" |
53 | 57 | push: true
|
54 | 58 | platforms: linux/amd64,linux/arm64
|
55 |
| - tags: | |
56 |
| - "${{env.BUILDKIT_IMAGE}}:8.1-alpine" |
| 59 | + build-args: | |
| 60 | + phpVersion=8.2 |
| 61 | + tags: "${{vars.BUILDKIT_IMAGE}}:8.2-alpine" |
57 | 62 | -
|
58 |
| - name: Build and push 8.2 alpine |
| 63 | + name: Build and push 8.3 |
59 | 64 | uses: docker/build-push-action@v3
|
60 | 65 | with:
|
61 |
| - file: "./src/docker/8.2/Dockerfile.alpine" |
| 66 | + file: "./src/docker/Dockerfile" |
62 | 67 | push: true
|
63 | 68 | platforms: linux/amd64,linux/arm64
|
| 69 | + build-args: | |
| 70 | + phpVersion=8.3 |
64 | 71 | tags: |
|
65 |
| - "${{env.BUILDKIT_IMAGE}}:8.2-alpine" |
| 72 | + "${{vars.BUILDKIT_IMAGE}}:8.3" |
| 73 | + "${{vars.BUILDKIT_IMAGE}}:latest" |
66 | 74 | -
|
67 | 75 | name: Build and push 8.3 alpine
|
68 | 76 | uses: docker/build-push-action@v3
|
69 | 77 | with:
|
70 |
| - file: "./src/docker/8.3/Dockerfile.alpine" |
| 78 | + file: "./src/docker/Dockerfile.alpine" |
71 | 79 | push: true
|
72 | 80 | platforms: linux/amd64,linux/arm64
|
| 81 | + build-args: | |
| 82 | + phpVersion=8.3 |
73 | 83 | tags: |
|
74 |
| - "${{env.BUILDKIT_IMAGE}}:8.3-alpine" |
| 84 | + "${{vars.BUILDKIT_IMAGE}}:8.3-alpine" |
75 | 85 | -
|
76 |
| - name: Build and push 8.3 |
| 86 | + name: Build and push 8.4 RC |
| 87 | + uses: docker/build-push-action@v3 |
| 88 | + with: |
| 89 | + file: "./src/docker/Dockerfile" |
| 90 | + push: true |
| 91 | + platforms: linux/amd64,linux/arm64 |
| 92 | + build-args: | |
| 93 | + phpVersion=8.4.0RC4 |
| 94 | + tags: | |
| 95 | + "${{vars.BUILDKIT_IMAGE}}:8.4.0RC4" |
| 96 | + - |
| 97 | + name: Build and push 8.4 RC alpine |
77 | 98 | uses: docker/build-push-action@v3
|
78 | 99 | with:
|
79 |
| - file: "./src/docker/8.3/Dockerfile" |
| 100 | + file: "./src/docker/Dockerfile.alpine" |
80 | 101 | push: true
|
81 | 102 | platforms: linux/amd64,linux/arm64
|
| 103 | + build-args: | |
| 104 | + phpVersion=8.4.0RC4 |
82 | 105 | tags: |
|
83 |
| - "${{env.BUILDKIT_IMAGE}}:8.3" |
84 |
| - "${{env.BUILDKIT_IMAGE}}:latest" |
| 106 | + "${{vars.BUILDKIT_IMAGE}}:8.4.0RC4-alpine" |
0 commit comments