-
Notifications
You must be signed in to change notification settings - Fork 1.1k
49 lines (45 loc) · 1.43 KB
/
ci.yaml
File metadata and controls
49 lines (45 loc) · 1.43 KB
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
46
47
48
49
name: Spring Cloud Kubernetes CI Job
on:
push:
branches: [ main, 3.2.x, 3.3.x ]
schedule:
- cron: '0 0 * * *'
workflow_dispatch:
inputs:
branches:
description: "Which branch should be built (single branch or comma-separated list)"
required: false
default: 'main'
type: string
permissions:
actions: write # Required to trigger workflows
contents: read
jobs:
determine-matrix:
runs-on: ubuntu-latest
outputs:
matrix: ${{ steps.determine.outputs.matrix }}
branches: ${{ steps.determine.outputs.branches }}
branch-jdk-mapping: ${{ steps.determine.outputs.branch-jdk-mapping }}
steps:
- name: Determine build matrix
id: determine
uses: spring-cloud/spring-cloud-github-actions/.github/actions/determine-matrix@main
with:
repository: ${{ github.repository }}
event-name: ${{ github.event_name }}
ref-name: ${{ github.ref_name }}
branches: ${{ inputs.branches }}
build-and-test:
name: ${{ matrix.branch }} / JDK ${{ matrix.java-version }}
needs: determine-matrix
strategy:
fail-fast: false
matrix:
include: ${{ fromJSON(needs.determine-matrix.outputs.matrix) }}
uses: ./.github/workflows/maven.yaml
with:
branch: ${{ matrix.branch }}
jdk-version: ${{ matrix.java-version }}
should-deploy: ${{ matrix.java-version == '17' }}
secrets: inherit