Skip to content

Commit

Permalink
Add input runner to control the used runner
Browse files Browse the repository at this point in the history
Signed-off-by: Andreas Heinrich <[email protected]>
  • Loading branch information
andistorm committed Oct 24, 2024
1 parent 71024d6 commit 20940db
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/deploy-single-docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,11 @@ on:
description: 'Build arguments for the Dockerfile'
required: false
type: string
runner:
description: 'Runner to use'
required: false
default: 'ubuntu-22.04'
type: string
outputs:
rebuild:
description: 'Whether the image is rebuilt or not'
Expand All @@ -74,7 +79,7 @@ jobs:
name: Check for changes
outputs:
rebuild: ${{ steps.set-outputs.outputs.rebuild }}
runs-on: ubuntu-22.04
runs-on: ${{ inputs.runner }}
steps:
- name: Checkout Dockerfile
if: ${{ inputs.force_rebuild == false }}
Expand Down Expand Up @@ -161,7 +166,7 @@ jobs:
build-and-push:
name: Build and push
needs: check
runs-on: ubuntu-22.04
runs-on: ${{ inputs.runner }}
outputs:
image_tags: ${{ steps.meta.outputs.tags }}
one_image_tag_short: ${{ steps.extract-one-tag.outputs.tag_short }}
Expand Down

0 comments on commit 20940db

Please sign in to comment.