Skip to content

Commit

Permalink
Allow workflow_dispatch with inputs, reset default to docker, and fix…
Browse files Browse the repository at this point in the history
… paths
  • Loading branch information
jlantz committed Oct 29, 2024
1 parent 38ed2cc commit 66b5e2d
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ on:
registry:
type: string
description: Container registry to use (docker, ghcr)
default: ghcr
default: docker
required: false
secrets:
DOCKER_USERNAME:
Expand Down
23 changes: 18 additions & 5 deletions .github/workflows/test-docker-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,26 @@ name: Test Docker Build
on:
push:
branches:
- main
- feature/multi-arch-docker
workflow_dispatch:
inputs:
version:
description: 'Version of the Salesforce CLI to build'
required: true
default: '0.0.1a1'
channel:
description: 'Channel to use for the Docker image'
required: true
default: 'latest'
registry:
description: 'Container registry to use'
required: true
default: 'ghcr'

jobs:
call-build-docker-images:
uses: ./.github/workflows/build-docker-images.yml
uses: ./.github/workflows/build-docker.yml
with:
version: '0.0.1a1'
channel: 'latest'
registry: 'ghcr'
version: ${{ github.event.inputs.version }}
channel: ${{ github.event.inputs.channel }}
registry: ${{ github.event.inputs.registry }}

0 comments on commit 66b5e2d

Please sign in to comment.