Skip to content

Commit 703d192

Browse files
authored
Create CI workflow for Spring Cloud Function
Add CI workflow for Spring Cloud Function with push, schedule, and manual trigger. Signed-off-by: Ryan Baxter <ryan.baxter@broadcom.com>
1 parent 9e91bee commit 703d192

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

.github/workflows/ci.yaml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Spring Cloud Function CI Job
2+
3+
on:
4+
push:
5+
branches:
6+
- 4.3.x
7+
8+
# Scheduled builds run daily at midnight UTC
9+
schedule:
10+
- cron: '0 0 * * *'
11+
12+
# Manual trigger with optional branch override
13+
workflow_dispatch:
14+
inputs:
15+
branches:
16+
description: "Which branch should be built (can be a comma-separated list of branches)"
17+
required: true
18+
default: '4.3.x'
19+
type: string
20+
21+
jobs:
22+
deploy:
23+
uses: spring-cloud/spring-cloud-github-actions/.github/workflows/deploy.yml@main
24+
with:
25+
branches: ${{ inputs.branches }}
26+
secrets:
27+
ARTIFACTORY_USERNAME: ${{ secrets.ARTIFACTORY_USERNAME }}
28+
ARTIFACTORY_PASSWORD: ${{ secrets.ARTIFACTORY_PASSWORD }}
29+
COMMERCIAL_ARTIFACTORY_USERNAME: ${{ secrets.COMMERCIAL_ARTIFACTORY_USERNAME }}
30+
COMMERCIAL_ARTIFACTORY_PASSWORD: ${{ secrets.COMMERCIAL_ARTIFACTORY_PASSWORD }}
31+
DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }}
32+
DOCKERHUB_TOKEN: ${{ secrets.DOCKERHUB_TOKEN }}

0 commit comments

Comments
 (0)