Skip to content

Commit

Permalink
github: simplify with matrix
Browse files Browse the repository at this point in the history
Signed-off-by: Kentaro Hayashi <[email protected]>
  • Loading branch information
kenhys committed Feb 6, 2025
1 parent 8d0c17f commit 32eecdd
Showing 1 changed file with 12 additions and 50 deletions.
62 changes: 12 additions & 50 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,62 +6,24 @@ on:
- master

jobs:
ubuntu:
docker:
strategy:
matrix:
dockerfile:
- Dockerfile.ubuntu
- Dockerfile.tdagent-ubuntu
- Dockerfile.ruby32
- Dockerfile.ruby34
runs-on: ubuntu-latest
steps:
-
uses: actions/checkout@v3
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
-
name: Build and push
id: docker_build
uses: docker/build-push-action@v6
with:
file: test/docker/Dockerfile.ubuntu
tdagent-deb:
runs-on: ubuntu-latest
steps:
-
uses: actions/checkout@v3
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
-
name: Build and push
id: docker_build
uses: docker/build-push-action@v6
with:
file: test/docker/Dockerfile.tdagent-ubuntu
tdagent-rpm:
runs-on: ubuntu-latest
steps:
-
uses: actions/checkout@v4
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
-
name: Build and push
id: docker_build
uses: docker/build-push-action@v6
with:
file: test/docker/Dockerfile.tdagent-almalinux
ruby32:
runs-on: ubuntu-latest
steps:
-
uses: actions/checkout@v4
-
name: Set up Docker Buildx
- uses: actions/checkout@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
-
name: Build and push
- name: Build and push
id: docker_build
uses: docker/build-push-action@v6
with:
file: test/docker/Dockerfile.ruby32
file: test/docker/${{ matrix.dockerfile }}
rubocop:
runs-on: ubuntu-latest
steps:
Expand Down

0 comments on commit 32eecdd

Please sign in to comment.