Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Add additional input params #2

Merged
merged 1 commit into from
Mar 13, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion actions/build/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,18 @@ inputs:
type: integer
description: Number of builds to do in parallel
default: 3
promu_config:
type: string
description: Config file for promu
default: .promu.yml
promu_opts:
type: string
description: Options to pass to promu
runs:
using: composite
steps:
- uses: ./.github/promci/actions/setup_environment
- run: ~/go/bin/promu crossbuild -v --parallelism ${{ inputs.parallelism }} --parallelism-thread ${{ inputs.thread }} ${{ inputs.promu_opts }}
- run: ~/go/bin/promu -c ${{ inputs.promu_config }} crossbuild -v --parallelism ${{ inputs.parallelism }} --parallelism-thread ${{ inputs.thread }} ${{ inputs.promu_opts }}
shell: bash
- uses: ./.github/promci/actions/save_artifacts
with:
Expand Down
6 changes: 6 additions & 0 deletions actions/publish_images/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ inputs:
description: Name of the container image
type: string
default: ""
docker_image_tag:
description: A custom image tag to be added
type: string
runs:
using: composite
steps:
Expand All @@ -36,6 +39,9 @@ runs:
- if: inputs.dockerbuild_context != ''
run: echo "export DOCKERBUILD_CONTEXT=${{ inputs.dockerbuild_context }}" >> /tmp/tmp-profile
shell: bash
- if: inputs.docker_image_tag != ''
run: echo "export DOCKER_IMAGE_TAG=${{ inputs.docker_image_tag }}" >> /tmp/tmp-profile
shell: bash
- run: |
touch /tmp/tmp-profile
. /tmp/tmp-profile
Expand Down
10 changes: 7 additions & 3 deletions actions/publish_release/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,18 +23,22 @@ inputs:
github_token:
type: string
description: Github Token
promu_config:
type: string
description: Config file for promu
default: .promu.yml
runs:
using: composite
steps:
- uses: ./.github/promci/actions/setup_environment
with:
enable_docker_multibuild: true
- uses: ./.github/promci/actions/restore_artifacts
- run: ~/go/bin/promu crossbuild tarballs
- run: ~/go/bin/promu -c ${{ inputs.promu_config}} crossbuild tarballs
shell: bash
- run: ~/go/bin/promu checksum .tarballs
- run: ~/go/bin/promu -c ${{ inputs.promu_config}} checksum .tarballs
shell: bash
- run: ~/go/bin/promu release .tarballs
- run: ~/go/bin/promu -c ${{ inputs.promu_config}} release .tarballs
shell: bash
env:
GITHUB_TOKEN: ${{ inputs.github_token }}
Expand Down