Skip to content

Commit

Permalink
upgrade GitHub workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
deminy committed Jan 12, 2024
1 parent 0869cb1 commit 291433f
Show file tree
Hide file tree
Showing 7 changed files with 37 additions and 37 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/build_nightly_alpine_images.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,27 +17,27 @@ jobs:
steps:
-
name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

-
name: Set up QEMU
uses: docker/setup-qemu-action@v2
uses: docker/setup-qemu-action@v3

-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
uses: docker/setup-buildx-action@v3

-
name: Login to DockerHub
uses: docker/login-action@v2
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

-
name: Build and push Docker image phpswoole/swoole:php${{ matrix.php }}-alpine
id: docker_build
uses: docker/build-push-action@v3
uses: docker/build-push-action@v5
with:
context: .
file: dockerfiles/nightly/php${{ matrix.php }}/alpine/Dockerfile
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/build_nightly_dev_images.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,27 +17,27 @@ jobs:
steps:
-
name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

-
name: Set up QEMU
uses: docker/setup-qemu-action@v2
uses: docker/setup-qemu-action@v3

-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
uses: docker/setup-buildx-action@v3

-
name: Login to DockerHub
uses: docker/login-action@v2
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

-
name: Build and push Docker image phpswoole/swoole:php${{ matrix.php }}-dev
id: docker_build
uses: docker/build-push-action@v3
uses: docker/build-push-action@v5
with:
context: .
file: dockerfiles/nightly/php${{ matrix.php }}/cli/Dockerfile
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/build_nightly_images.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,27 +17,27 @@ jobs:
steps:
-
name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

-
name: Set up QEMU
uses: docker/setup-qemu-action@v2
uses: docker/setup-qemu-action@v3

-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
uses: docker/setup-buildx-action@v3

-
name: Login to DockerHub
uses: docker/login-action@v2
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

-
name: Build and push Docker image phpswoole/swoole:php${{ matrix.php }}
id: docker_build
uses: docker/build-push-action@v3
uses: docker/build-push-action@v5
with:
context: .
file: dockerfiles/nightly/php${{ matrix.php }}/cli/Dockerfile
Expand Down
14 changes: 7 additions & 7 deletions .github/workflows/build_versioned_alpine_images.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,19 +20,19 @@ jobs:
steps:
-
name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

-
name: Set up QEMU
uses: docker/setup-qemu-action@v2
uses: docker/setup-qemu-action@v3

-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
uses: docker/setup-buildx-action@v3

-
name: Login to DockerHub
uses: docker/login-action@v2
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
Expand Down Expand Up @@ -65,7 +65,7 @@ jobs:
-
name: Build and push Docker image phpswoole/swoole:${{ steps.params.outputs.branch_name }}-php${{ matrix.php }}-alpine (${{ steps.params.outputs.image_type }})
if: steps.params.outputs.released_already != 'true' && steps.params.outputs.image_type == 'latest'
uses: docker/build-push-action@v3
uses: docker/build-push-action@v5
with:
context: .
file: dockerfiles/${{ steps.params.outputs.branch_name }}/php${{ matrix.php }}/alpine/Dockerfile
Expand All @@ -80,7 +80,7 @@ jobs:
-
name: Build and push Docker image phpswoole/swoole:${{ steps.params.outputs.branch_name }}-php${{ matrix.php }}-alpine (${{ steps.params.outputs.image_type }})
if: steps.params.outputs.released_already != 'true' && steps.params.outputs.image_type == 'major'
uses: docker/build-push-action@v3
uses: docker/build-push-action@v5
with:
context: .
file: dockerfiles/${{ steps.params.outputs.branch_name }}/php${{ matrix.php }}/alpine/Dockerfile
Expand All @@ -94,7 +94,7 @@ jobs:
-
name: Build and push Docker image phpswoole/swoole:${{ steps.params.outputs.branch_name }}-php${{ matrix.php }}-alpine (${{ steps.params.outputs.image_type }})
if: steps.params.outputs.released_already != 'true' && steps.params.outputs.image_type == 'default'
uses: docker/build-push-action@v3
uses: docker/build-push-action@v5
with:
context: .
file: dockerfiles/${{ steps.params.outputs.branch_name }}/php${{ matrix.php }}/alpine/Dockerfile
Expand Down
14 changes: 7 additions & 7 deletions .github/workflows/build_versioned_dev_images.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,19 +20,19 @@ jobs:
steps:
-
name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

-
name: Set up QEMU
uses: docker/setup-qemu-action@v2
uses: docker/setup-qemu-action@v3

-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
uses: docker/setup-buildx-action@v3

-
name: Login to DockerHub
uses: docker/login-action@v2
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
Expand Down Expand Up @@ -65,7 +65,7 @@ jobs:
-
name: Build and push Docker image phpswoole/swoole:${{ steps.params.outputs.branch_name }}-php${{ matrix.php }}-dev (${{ steps.params.outputs.image_type }})
if: steps.params.outputs.released_already != 'true' && steps.params.outputs.image_type == 'latest'
uses: docker/build-push-action@v3
uses: docker/build-push-action@v5
with:
context: .
file: dockerfiles/${{ steps.params.outputs.branch_name }}/php${{ matrix.php }}/cli/Dockerfile
Expand All @@ -81,7 +81,7 @@ jobs:
-
name: Build and push Docker image phpswoole/swoole:${{ steps.params.outputs.branch_name }}-php${{ matrix.php }}-dev (${{ steps.params.outputs.image_type }})
if: steps.params.outputs.released_already != 'true' && steps.params.outputs.image_type == 'major'
uses: docker/build-push-action@v3
uses: docker/build-push-action@v5
with:
context: .
file: dockerfiles/${{ steps.params.outputs.branch_name }}/php${{ matrix.php }}/cli/Dockerfile
Expand All @@ -96,7 +96,7 @@ jobs:
-
name: Build and push Docker image phpswoole/swoole:${{ steps.params.outputs.branch_name }}-php${{ matrix.php }}-dev (${{ steps.params.outputs.image_type }})
if: steps.params.outputs.released_already != 'true' && steps.params.outputs.image_type == 'default'
uses: docker/build-push-action@v3
uses: docker/build-push-action@v5
with:
context: .
file: dockerfiles/${{ steps.params.outputs.branch_name }}/php${{ matrix.php }}/cli/Dockerfile
Expand Down
14 changes: 7 additions & 7 deletions .github/workflows/build_versioned_images.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,19 +20,19 @@ jobs:
steps:
-
name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

-
name: Set up QEMU
uses: docker/setup-qemu-action@v2
uses: docker/setup-qemu-action@v3

-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
uses: docker/setup-buildx-action@v3

-
name: Login to DockerHub
uses: docker/login-action@v2
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
Expand Down Expand Up @@ -65,7 +65,7 @@ jobs:
-
name: Build and push Docker image phpswoole/swoole:${{ steps.params.outputs.branch_name }}-php${{ matrix.php }} (${{ steps.params.outputs.image_type }})
if: steps.params.outputs.released_already != 'true' && steps.params.outputs.image_type == 'latest'
uses: docker/build-push-action@v3
uses: docker/build-push-action@v5
with:
context: .
file: dockerfiles/${{ steps.params.outputs.branch_name }}/php${{ matrix.php }}/cli/Dockerfile
Expand All @@ -80,7 +80,7 @@ jobs:
-
name: Build and push Docker image phpswoole/swoole:${{ steps.params.outputs.branch_name }}-php${{ matrix.php }} (${{ steps.params.outputs.image_type }})
if: steps.params.outputs.released_already != 'true' && steps.params.outputs.image_type == 'major'
uses: docker/build-push-action@v3
uses: docker/build-push-action@v5
with:
context: .
file: dockerfiles/${{ steps.params.outputs.branch_name }}/php${{ matrix.php }}/cli/Dockerfile
Expand All @@ -94,7 +94,7 @@ jobs:
-
name: Build and push Docker image phpswoole/swoole:${{ steps.params.outputs.branch_name }}-php${{ matrix.php }} (${{ steps.params.outputs.image_type }})
if: steps.params.outputs.released_already != 'true' && steps.params.outputs.image_type == 'default'
uses: docker/build-push-action@v3
uses: docker/build-push-action@v5
with:
context: .
file: dockerfiles/${{ steps.params.outputs.branch_name }}/php${{ matrix.php }}/cli/Dockerfile
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
steps:
-
name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

-
name: Setup PHP
Expand Down

0 comments on commit 291433f

Please sign in to comment.