Skip to content
Open
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
8 changes: 6 additions & 2 deletions build-docker/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,10 @@ inputs:
description: "Additional tag to apply to the image"
required: false
default: ""
build_context:
description: "Directory to use as build context"
required: false
default: "."

outputs:
tags:
Expand Down Expand Up @@ -87,7 +91,7 @@ runs:
- name: Build image locally for testing
uses: docker/build-push-action@v6
with:
context: .
context: ${{ inputs.build_context }}
load: true
build-args: ${{ inputs.test_build_args }}
tags: ${{ inputs.registry }}/${{ inputs.image }}:test
Expand All @@ -103,7 +107,7 @@ runs:
id: build
uses: docker/build-push-action@v2
with:
context: .
context: ${{ inputs.build_context }}
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
Expand Down