Skip to content

Commit

Permalink
Add gh-runners-driver-opts in build-push action
Browse files Browse the repository at this point in the history
  • Loading branch information
catks committed Nov 4, 2024
1 parent aed7738 commit 57ce269
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions build-push-image/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,11 @@ inputs:
registry-name:
required: true
description: 'Registry to push the builded image'
gh-runner-driver-opts:
required: false
description: 'Driver options for GH Runners'
default: |
image=moby/buildkit:buildx-stable-1
runs:
using: composite
Expand Down Expand Up @@ -123,6 +128,9 @@ runs:
- name: Set up Docker Buildx - GH runners
if: "!(contains(runner.name, 'inf-gha-runners') && contains(runner.name, 'ubuntu2204'))"
uses: docker/setup-buildx-action@v3
with:
driver-opts: ${{ inputs.gh-runner-driver-opts }}


- name: Build and push release image
uses: docker/build-push-action@v5
Expand Down

0 comments on commit 57ce269

Please sign in to comment.