-
Notifications
You must be signed in to change notification settings - Fork 43
45 lines (43 loc) · 1.04 KB
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
name: CI
on:
push:
branches:
- master
pull_request:
jobs:
docker:
name: ${{ matrix.target.env }}
strategy:
matrix:
target:
- env: ubuntu
dockerfile: Dockerfile.ubuntu
- env: td-agent-deb
dockerfile: Dockerfile.tdagent-ubuntu
- env: td-agent-rpm
dockerfile: Dockerfile.tdagent-almalinux
- env: ruby32
dockerfile: Dockerfile.ruby32
- env: ruby34
dockerfile: 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/${{ matrix.target.dockerfile }}
rubocop:
runs-on: ubuntu-latest
steps:
-
uses: actions/checkout@v4
-
uses: ruby/setup-ruby@v1
with:
bundler-cache: true
-
run: bundle exec rake rubocop