Skip to content

Commit

Permalink
add a flag for the buildkit_version as well
Browse files Browse the repository at this point in the history
  • Loading branch information
gibsondan committed Mar 15, 2024
1 parent 437bb4a commit c5206d6
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 1 deletion.
7 changes: 6 additions & 1 deletion actions/hybrid_branch_deploy/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,11 @@ inputs:
default: 'true'
buildx_version:
required: false
description: "Which version of buildx to use to build and deploy the Docker image."
description: "Which version of buildx (the build client) to use to build and deploy the Docker image."
buildkit_version:
required: false
description: "Which version of buildkit (the build serer) to use to build and deploy the Docker image."
default: 'latest'

outputs:
deployment:
Expand Down Expand Up @@ -62,6 +66,7 @@ runs:
uses: docker/setup-buildx-action@v2
with:
version: ${{ inputs.buildx_version }}
driver-opts: image=moby/buildkit:${{ inputs.buildkit_version }}

# See https://github.com/docker/build-push-action/ for more info
- name: Build and push Docker image
Expand Down
5 changes: 5 additions & 0 deletions actions/hybrid_prod_deploy/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ inputs:
buildx_version:
required: false
description: "Which version of buildx to use to build and deploy the Docker image."
buildkit_version:
required: false
description: "Which version of buildkit (the build serer) to use to build and deploy the Docker image."
default: 'latest'

runs:
using: "composite"
Expand Down Expand Up @@ -50,6 +54,7 @@ runs:
uses: docker/setup-buildx-action@v2
with:
version: ${{ inputs.buildx_version }}
driver-opts: image=moby/buildkit:${{ inputs.buildkit_version }}

- name: Build and push Docker image
uses: docker/build-push-action@v4
Expand Down
5 changes: 5 additions & 0 deletions actions/serverless_branch_deploy/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@ inputs:
buildx_version:
required: false
description: "Which version of buildx to use to build and deploy the Docker image."
buildkit_version:
required: false
description: "Which version of buildkit (the build serer) to use to build and deploy the Docker image."
default: 'latest'

outputs:
deployment:
Expand Down Expand Up @@ -79,6 +83,7 @@ runs:
uses: docker/setup-buildx-action@v2
with:
version: ${{ inputs.buildx_version }}
driver-opts: image=moby/buildkit:${{ inputs.buildkit_version }}

- name: Copy user code template file
if: ${{ github.event.pull_request.state != 'closed' }}
Expand Down
5 changes: 5 additions & 0 deletions actions/serverless_prod_deploy/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@ inputs:
buildx_version:
required: false
description: "Which version of buildx to use to build and deploy the Docker image."
buildkit_version:
required: false
description: "Which version of buildkit (the build serer) to use to build and deploy the Docker image."
default: 'latest'

runs:
using: "composite"
Expand Down Expand Up @@ -67,6 +71,7 @@ runs:
uses: docker/setup-buildx-action@v2
with:
version: ${{ inputs.buildx_version }}
driver-opts: image=moby/buildkit:${{ inputs.buildkit_version }}

- name: Copy user code template file
uses: ./action-repo/actions/utils/copy_template
Expand Down

0 comments on commit c5206d6

Please sign in to comment.