Skip to content

Commit

Permalink
Merge pull request #2 from prometheus/superq/promu_config
Browse files Browse the repository at this point in the history
Add additional input params
  • Loading branch information
simonpasquier authored Mar 13, 2023
2 parents 16aa34b + dccd882 commit 3cb0c38
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 4 deletions.
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

0 comments on commit 3cb0c38

Please sign in to comment.