File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -15,17 +15,20 @@ jobs:
1515 variant : [alpine]
1616 steps :
1717 - name : Login to Docker Hub
18- uses : docker/login-action@v3
18+ uses : docker/login-action@v4
1919 with :
2020 username : ${{ secrets.DOCKERHUB_USERNAME }}
2121 password : ${{ secrets.DOCKERHUB_TOKEN }}
2222 - name : Checkout code
2323 uses : actions/checkout@v4
2424 - name : Set up Docker Buildx
25- uses : docker/setup-buildx-action@v3
26- - name : build image
27- run : |
28- docker build --no-cache --target ${{matrix.env}} --build-arg PHP_VERSION="${{matrix.version}}" --build-arg SAPI="${{matrix.sapi}}" -t ${{ github.repository_owner }}/php:${{matrix.version}}-${{matrix.variant}}-${{matrix.env}} ./php/${{matrix.variant}}
29- - name : push image
30- run : |
31- docker push ${{ github.repository_owner }}/\php:${{matrix.version}}-${{matrix.variant}}-${{matrix.env}}
25+ uses : docker/setup-buildx-action@v4
26+ name : Build and push
27+ uses : docker/build-push-action@v7
28+ with :
29+ context : ./php/${{matrix.variant}}
30+ push : true
31+ tag : {{ github.repository_owner }}/php:${{matrix.version}}-${{matrix.sapi}}-${{matrix.variant}}-${{matrix.env}}
32+ build-args : |
33+ PHP_VERSION="${{matrix.version}}"
34+ SAPI="${{matrix.sapi}}"
You can’t perform that action at this time.
0 commit comments