Skip to content

Commit

Permalink
chore: update ci github actions dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
joseluisq committed Apr 3, 2024
1 parent 7f8e4bc commit 770c561
Show file tree
Hide file tree
Showing 6 changed files with 55 additions and 44 deletions.
16 changes: 9 additions & 7 deletions .github/workflows/devel-8.1.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ on:

jobs:
php:
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
strategy:
matrix:
build:
Expand All @@ -38,28 +38,30 @@ jobs:
steps:
-
name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 1
-
name: Cache Docker layers
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: /tmp/.buildx-cache
key: 8.1-fpm-${{ matrix.arch }}-buildx-${{ github.sha }}
key: 8.1-fpm-${{ matrix.arch }}-buildx-${{ hashFiles('8.1-fpm/**') }}
restore-keys: |
8.1-fpm-${{ matrix.arch }}-buildx-${{ hashFiles('8.1-fpm/**') }}
8.1-fpm-${{ matrix.arch }}-buildx-
-
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: Build and Test
uses: docker/build-push-action@v3
uses: docker/build-push-action@v5
with:
push: false
provenance: false
context: .
platforms: ${{ matrix.arch }}
file: 8.1-fpm/Dockerfile
Expand Down
12 changes: 7 additions & 5 deletions .github/workflows/devel-8.2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,28 +38,30 @@ jobs:
steps:
-
name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 1
-
name: Cache Docker layers
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: /tmp/.buildx-cache
key: 8.2-fpm-${{ matrix.arch }}-buildx-${{ hashFiles('8.2-fpm/**') }}
restore-keys: |
8.2-fpm-${{ matrix.arch }}-buildx-${{ hashFiles('8.2-fpm/**') }}
8.2-fpm-${{ matrix.arch }}-buildx-
-
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: Build and Test
uses: docker/build-push-action@v3
uses: docker/build-push-action@v5
with:
push: false
provenance: false
context: .
platforms: ${{ matrix.arch }}
file: 8.2-fpm/Dockerfile
Expand Down
18 changes: 11 additions & 7 deletions .github/workflows/devel-8.3.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,17 @@ on:
- master
paths:
- 8.3-fpm/**
- .github/workflows/devel-8.3.yml
push:
branches:
- master
paths:
- 8.3-fpm/**
- .github/workflows/devel-8.3.yml

jobs:
php:
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
strategy:
matrix:
build:
Expand All @@ -36,28 +38,30 @@ jobs:
steps:
-
name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 1
-
name: Cache Docker layers
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: /tmp/.buildx-cache
key: 8.3-fpm-${{ matrix.arch }}-buildx-${{ github.sha }}
key: 8.3-fpm-${{ matrix.arch }}-buildx-${{ hashFiles('8.3-fpm/**') }}
restore-keys: |
8.3-fpm-${{ matrix.arch }}-buildx-${{ hashFiles('8.3-fpm/**') }}
8.3-fpm-${{ matrix.arch }}-buildx-
-
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: Build and Test
uses: docker/build-push-action@v3
uses: docker/build-push-action@v5
with:
push: false
provenance: false
context: .
platforms: ${{ matrix.arch }}
file: 8.3-fpm/Dockerfile
Expand Down
19 changes: 10 additions & 9 deletions .github/workflows/release-8.1.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:

jobs:
docker-build:
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
strategy:
matrix:
build:
Expand All @@ -31,14 +31,14 @@ 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: Docker meta
id: meta
uses: docker/metadata-action@v4
uses: docker/metadata-action@v5
with:
images: joseluisq/php-fpm
flavor: |
Expand All @@ -47,26 +47,27 @@ jobs:
type=semver,pattern={{major}}.{{minor}}-${{ matrix.build }}
-
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
uses: docker/build-push-action@v3
uses: docker/build-push-action@v5
with:
push: true
provenance: false
context: .
platforms: ${{ matrix.arch }}
file: 8.1-fpm/Dockerfile
tags: ${{ steps.meta.outputs.tags }}

docker-manifest:
needs: docker-build
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
steps:
- name: Set envs
run: |
Expand All @@ -77,7 +78,7 @@ jobs:
echo "SEMVER_MINOR=${SEMVER%.*}" >> $GITHUB_ENV
-
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
15 changes: 8 additions & 7 deletions .github/workflows/release-8.2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,14 @@ 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: Docker meta
id: meta
uses: docker/metadata-action@v4
uses: docker/metadata-action@v5
with:
images: joseluisq/php-fpm
flavor: |
Expand All @@ -47,18 +47,19 @@ jobs:
type=semver,pattern={{major}}.{{minor}}-${{ matrix.build }}
-
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
uses: docker/build-push-action@v3
uses: docker/build-push-action@v5
with:
push: true
provenance: false
context: .
platforms: ${{ matrix.arch }}
file: 8.2-fpm/Dockerfile
Expand All @@ -77,7 +78,7 @@ jobs:
echo "SEMVER_MINOR=${SEMVER%.*}" >> $GITHUB_ENV
-
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
19 changes: 10 additions & 9 deletions .github/workflows/release-8.3.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:

jobs:
docker-build:
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
strategy:
matrix:
build:
Expand All @@ -31,14 +31,14 @@ 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: Docker meta
id: meta
uses: docker/metadata-action@v4
uses: docker/metadata-action@v5
with:
images: joseluisq/php-fpm
flavor: |
Expand All @@ -47,26 +47,27 @@ jobs:
type=semver,pattern={{major}}.{{minor}}-${{ matrix.build }}
-
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
uses: docker/build-push-action@v3
uses: docker/build-push-action@v5
with:
push: true
provenance: false
context: .
platforms: ${{ matrix.arch }}
file: 8.3-fpm/Dockerfile
tags: ${{ steps.meta.outputs.tags }}

docker-manifest:
needs: docker-build
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
steps:
- name: Set envs
run: |
Expand All @@ -77,7 +78,7 @@ jobs:
echo "SEMVER_MINOR=${SEMVER%.*}" >> $GITHUB_ENV
-
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

0 comments on commit 770c561

Please sign in to comment.