Skip to content

Commit

Permalink
Add BOOTSTRAP_SCRIPT config option.
Browse files Browse the repository at this point in the history
  • Loading branch information
s3rj1k committed Feb 14, 2024
1 parent 9513aea commit 64402ab
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/ci-deb-packages-v2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,11 @@ on:
description: Default OS/Arch
default: linux/amd64
type: string
BOOTSTRAP_SCRIPT:
required: false
type: string
default: ''
description: Custom `sh` bootstrap script
INSTALL_DEPENDENCIES:
required: false
type: boolean
Expand Down Expand Up @@ -78,6 +83,16 @@ jobs:
with:
fetch-depth: 0

- name: Run custom bootstrap script
shell: sh
run: |
if [ -n "${{ inputs.BOOTSTRAP_SCRIPT }}" ]; then
echo "Running provided script..."
echo "${{ inputs.BOOTSTRAP_SCRIPT }}" | sh
else
echo "No script was provided. Skipping execution."
fi
- name: Generate DEBs based on ${{ inputs.BASE_IMAGE }}:${{ inputs.DISTRO_CODENAME }} for ${{ inputs.PLATFORM }}
if: ${{ inputs.USE_CMAKE == false }}
shell: sh
Expand Down

0 comments on commit 64402ab

Please sign in to comment.