Skip to content

Commit 6aaf146

Browse files
authored
Add CI workflow for Spring Cloud Function
Signed-off-by: Ryan Baxter <ryan.baxter@broadcom.com>
1 parent 3bd3f63 commit 6aaf146

1 file changed

Lines changed: 33 additions & 0 deletions

File tree

.github/workflows/ci.yaml

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

0 commit comments

Comments
 (0)