Skip to content

Commit 7da7c2a

Browse files
authored
Merge pull request #192 from docker/refactor/ci-restructure
refactor(ci): split CI jobs more granularly
2 parents 0a64cde + 4727e4c commit 7da7c2a

5 files changed

Lines changed: 94 additions & 77 deletions

File tree

.github/workflows/build.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Build
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
9+
jobs:
10+
11+
nri-plugin:
12+
name: Build NRI Plugin
13+
runs-on: ubuntu-latest
14+
permissions:
15+
id-token: write
16+
pull-requests: write
17+
contents: write
18+
19+
steps:
20+
- name: Checkout code
21+
uses: actions/checkout@v4
22+
23+
- name: Hub login
24+
uses: docker/login-action@v3
25+
with:
26+
username: ${{ vars.DOCKERBUILDBOT_USERNAME }}
27+
password: ${{ secrets.DOCKERBUILDBOT_WRITE_PAT }}
28+
29+
- name: Set up Docker Buildx
30+
id: buildx
31+
uses: docker/setup-buildx-action@v3
32+
with:
33+
driver: cloud
34+
endpoint: "docker/secrets-engine"
35+
install: true
36+
37+
- name: Build NRI Plugin
38+
run: make BUILDER=${{ steps.buildx.outputs.name }} nri-plugin-package

.github/workflows/ci.yml

Lines changed: 0 additions & 76 deletions
This file was deleted.

.github/workflows/engine.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Engine
1+
name: Engine (cross platform)
22

33
on:
44
push:

.github/workflows/lint.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: Lint
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
9+
jobs:
10+
lint:
11+
name: Lint
12+
runs-on: ubuntu-latest
13+
permissions:
14+
id-token: write
15+
pull-requests: write
16+
contents: write
17+
18+
steps:
19+
- name: Checkout code
20+
uses: actions/checkout@v4
21+
22+
- name: Hub login
23+
uses: docker/login-action@v3
24+
with:
25+
username: ${{ vars.DOCKERBUILDBOT_USERNAME }}
26+
password: ${{ secrets.DOCKERBUILDBOT_WRITE_PAT }}
27+
28+
- name: Set up Docker Buildx
29+
id: buildx
30+
uses: docker/setup-buildx-action@v3
31+
with:
32+
driver: cloud
33+
endpoint: "docker/secrets-engine"
34+
install: true
35+
36+
- name: Lint
37+
run: make BUILDER=${{ steps.buildx.outputs.name }} lint

.github/workflows/unittests.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: Unit Tests
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
9+
jobs:
10+
unit-tests:
11+
name: Unit Tests
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: Checkout code
15+
uses: actions/checkout@v4
16+
17+
- name: Unit Tests
18+
run: make unit-tests

0 commit comments

Comments
 (0)