Skip to content

Commit deb6afb

Browse files
committed
Add CI job
1 parent e1646a8 commit deb6afb

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

.github/workflows/ci.yaml

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

0 commit comments

Comments
 (0)