Skip to content

Commit 01a50d8

Browse files
authored
Create CI workflow for Spring Cloud Task
Add CI workflow for Spring Cloud Task with scheduled builds and manual triggers. Signed-off-by: Ryan Baxter <ryan.baxter@broadcom.com>
1 parent e45f44b commit 01a50d8

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+
2+
name: Spring Cloud Task CI Job
3+
4+
on:
5+
push:
6+
branches:
7+
- 3.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: '3.3.x'
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)