Skip to content

Commit 29d290e

Browse files
committed
feat: add customizable runner input
- Introduced a new input parameter `runner` to the Docker build and publish workflow, allowing users to specify the runner type. The default value is set to "ubuntu-latest". - Updated the `runs-on` directive to utilize the new input parameter for greater flexibility in CI/CD configurations.
1 parent de7a380 commit 29d290e

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.github/workflows/docker-build-push-jfrog.yaml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
on:
22
workflow_call:
33
inputs:
4+
runner:
5+
description: "Runner to use"
6+
type: string
7+
required: false
8+
default: "ubuntu-latest"
49
repo_name:
510
description: "Name of the repository to publish to"
611
type: string
@@ -85,7 +90,7 @@ permissions:
8590
jobs:
8691
publish:
8792
name: Build and publish Docker image
88-
runs-on: ubuntu-latest
93+
runs-on: ${{ inputs.runner }}
8994
steps:
9095
- name: Checkout code
9196
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1

0 commit comments

Comments
 (0)