Skip to content

Commit a6d5098

Browse files
committed
Updating deploy.yml example
1 parent 891afc5 commit a6d5098

1 file changed

Lines changed: 11 additions & 2 deletions

File tree

examples/deploy.yml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
# Note: The 'branches' input accepts either a single branch name or a comma-separated
66
# list of branches (e.g., "main,3.3.x,3.2.x") for building multiple branches in one run.
77

8-
name: Deploy
8+
name: Spring Cloud CI Job
99

1010
on:
1111
push:
@@ -19,20 +19,26 @@ on:
1919
schedule:
2020
- cron: '0 0 * * *'
2121

22-
# Manual trigger with optional branch override
22+
# Manual trigger with optional inputs
2323
workflow_dispatch:
2424
inputs:
2525
branches:
2626
description: 'Which branch(es) should be built - single branch or comma-separated list (e.g., "main,3.3.x,3.2.x")'
2727
required: false
2828
default: ''
2929
type: string
30+
runs_on:
31+
description: 'Runner to use for the build job (defaults to ubuntu-latest)'
32+
required: false
33+
default: 'ubuntu-latest'
34+
type: string
3035

3136
jobs:
3237
deploy:
3338
uses: spring-cloud/spring-cloud-github-actions/.github/workflows/deploy.yml@main
3439
with:
3540
branches: ${{ inputs.branches }}
41+
runs_on: ${{ inputs.runs_on }}
3642
# Optional: Custom build command to override the default Maven deploy command
3743
# Supports both single-line and multi-line commands
3844
# Single-line example:
@@ -45,6 +51,9 @@ jobs:
4551
secrets:
4652
ARTIFACTORY_USERNAME: ${{ secrets.ARTIFACTORY_USERNAME }}
4753
ARTIFACTORY_PASSWORD: ${{ secrets.ARTIFACTORY_PASSWORD }}
54+
# Required for commercial repositories (e.g., *-commercial)
55+
# COMMERCIAL_ARTIFACTORY_USERNAME: ${{ secrets.COMMERCIAL_ARTIFACTORY_USERNAME }}
56+
# COMMERCIAL_ARTIFACTORY_PASSWORD: ${{ secrets.COMMERCIAL_ARTIFACTORY_PASSWORD }}
4857
DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }}
4958
DOCKERHUB_TOKEN: ${{ secrets.DOCKERHUB_TOKEN }}
5059

0 commit comments

Comments
 (0)