Skip to content

Commit b3ef350

Browse files
committed
Update of GitHub workflow file for supporting 5.x CI/CD
1 parent 8aa6aca commit b3ef350

File tree

2 files changed

+46
-0
lines changed

2 files changed

+46
-0
lines changed

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

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 6 * * *'
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-matrix-5.x.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
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+
uses: ./.github/workflows/ci.yml
18+
with:
19+
branch: ${{ github.event.pull_request.head.sha || github.ref_name }}
20+
jdk: ${{ matrix.jdk }}
21+
os: ${{ matrix.os }}
22+
secrets: inherit
23+
Deploy:
24+
if: ${{ github.repository_owner == 'eclipse-vertx' && (github.event_name == 'push' || github.event_name == 'schedule') }}
25+
needs: CI
26+
uses: ./.github/workflows/deploy.yml
27+
with:
28+
branch: ${{ github.event.pull_request.head.sha || github.ref_name }}
29+
jdk: 11
30+
secrets: inherit

0 commit comments

Comments
 (0)