Skip to content

Commit 209063b

Browse files
committed
CI/CD workflow upgrade
1 parent 452ad24 commit 209063b

File tree

3 files changed

+53
-24
lines changed

3 files changed

+53
-24
lines changed
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: CI/CD (5.x-stable)
2+
on:
3+
push:
4+
branches:
5+
- '5.[0-9]+'
6+
pull_request:
7+
branches:
8+
- '5.[0-9]+'
9+
schedule:
10+
- cron: '0 5 * * *'
11+
jobs:
12+
CI-CD:
13+
uses: ./.github/workflows/ci-matrix-5.x.yml
14+
secrets: inherit
15+
with:
16+
branch: ${{ github.event_name == 'schedule' && vars.VERTX_5_STABLE_BRANCH || github.event.pull_request.head.sha || github.ref_name }}

.github/workflows/ci-5.x.yml

Lines changed: 5 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,16 @@
1-
name: vertx-codegen (5.x)
1+
name: CI/CD (5.x)
22
on:
33
push:
44
branches:
5-
- master
5+
- 'master'
66
pull_request:
77
branches:
8-
- master
8+
- 'master'
99
schedule:
1010
- cron: '0 5 * * *'
1111
jobs:
12-
CI:
13-
strategy:
14-
matrix:
15-
include:
16-
- os: ubuntu-latest
17-
jdk: 11
18-
- os: ubuntu-latest
19-
jdk: 21
20-
- os: windows-latest
21-
jdk: 21
22-
uses: ./.github/workflows/ci.yml
23-
with:
24-
branch: ${{ github.event.pull_request.head.sha || github.ref_name }}
25-
jdk: ${{ matrix.jdk }}
26-
os: ${{ matrix.os }}
12+
CI-CD:
13+
uses: ./.github/workflows/ci-matrix-5.x.yml
2714
secrets: inherit
28-
Deploy:
29-
if: ${{ github.repository_owner == 'eclipse-vertx' && (github.event_name == 'push' || github.event_name == 'schedule') }}
30-
needs: CI
31-
uses: ./.github/workflows/deploy.yml
3215
with:
3316
branch: ${{ github.event.pull_request.head.sha || github.ref_name }}
34-
jdk: 11
35-
secrets: inherit
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: CI matrix (5.x)
2+
on:
3+
workflow_call:
4+
inputs:
5+
branch:
6+
required: true
7+
type: string
8+
jobs:
9+
CI:
10+
strategy:
11+
matrix:
12+
include:
13+
- os: ubuntu-latest
14+
jdk: 11
15+
- os: ubuntu-latest
16+
jdk: 21
17+
- os: windows-latest
18+
jdk: 21
19+
uses: ./.github/workflows/ci.yml
20+
with:
21+
branch: ${{ inputs.branch }}
22+
jdk: ${{ matrix.jdk }}
23+
os: ${{ matrix.os }}
24+
secrets: inherit
25+
CD:
26+
if: ${{ github.repository_owner == 'eclipse-vertx' && (github.event_name == 'push' || github.event_name == 'schedule') }}
27+
needs: CI
28+
uses: ./.github/workflows/deploy.yml
29+
with:
30+
branch: ${{ inputs.branch }}
31+
jdk: 11
32+
secrets: inherit

0 commit comments

Comments
 (0)