File tree Expand file tree Collapse file tree 1 file changed +13
-5
lines changed
Expand file tree Collapse file tree 1 file changed +13
-5
lines changed Original file line number Diff line number Diff line change 88 build :
99 runs-on : ubuntu-latest
1010
11+ services :
12+ registry :
13+ image : registry:2
14+ ports :
15+ - 5000:5000
16+
1117 strategy :
1218 matrix :
1319 version : ['8.0-swoole', '8.1-swoole', '8.2-swoole', '8.3-swoole']
@@ -22,22 +28,24 @@ jobs:
2228
2329 - name : Setup Docker Buildx
2430 uses : docker/setup-buildx-action@v3
31+ with :
32+ driver-opts : network=host # needed to push to local registry
2533
2634 - name : Build and export to Docker
2735 uses : docker/build-push-action@v5
2836 with :
2937 context : ${{ matrix.version }}${{ matrix.type }}
30- load : true
31- tags : kooldev/php:${{ matrix.version }}${{ matrix.type }}
38+ push : true
39+ tags : localhost:5000/ kooldev/php:${{ matrix.version }}${{ matrix.type }}
3240
3341 - name : Build and export to Docker (nginx)
3442 uses : docker/build-push-action@v5
3543 with :
3644 context : ${{ matrix.version }}-nginx${{ matrix.type }}
37- load : true
38- tags : kooldev/php:${{ matrix.version }}-nginx${{ matrix.type }}
45+ push : true
46+ tags : localhost:5000/ kooldev/php:${{ matrix.version }}-nginx${{ matrix.type }}
3947 build-contexts : |
40- ${{ matrix.version }}${{ matrix.type }}=docker-image://${{ matrix.version }}${{ matrix.type }}
48+ ${{ matrix.version }}${{ matrix.type }}=docker-image://localhost:5000/ ${{ matrix.version }}${{ matrix.type }}
4149
4250 - name : Tests
4351 run : |
You can’t perform that action at this time.
0 commit comments