Skip to content

Commit efd8bc1

Browse files
committed
Add target
build stage input
1 parent 7aa7267 commit efd8bc1

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ jobs:
4949
runs-on: ubuntu-22.04
5050
steps:
5151
- name: docker-build-action
52-
uses: serversideup/github-action-docker-build@v1
52+
uses: serversideup/github-action-docker-build@v3
5353
with:
5454
tags: serversideup/financial-freedom:latest
5555
registry-username: ${{ secrets.DOCKER_HUB_USERNAME }}
@@ -66,6 +66,7 @@ registry|Choose which container image repository to upload to. <a href="https://
6666
context|The relative path to the Dockerfile.| |`.`
6767
dockerfile|Filename of the Dockerfile within the context that you set.| |`{context}/Dockerfile`
6868
platforms|Comma separated list of <a href="https://github.com/docker-library/official-images#architectures-other-than-amd64">platforms</a>.| |`linux/amd64`
69+
target|The target build stage to build.| |`''`
6970

7071
### Important security notice
7172
Always use encrypted secrets when passing sensitive information. [Learn more here →](https://docs.github.com/en/actions/security-guides/encrypted-secrets)

action.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,10 @@ inputs:
2222
description: 'Filename of the Dockerfile within the context that you set.'
2323
default: '{context}/Dockerfile'
2424
required: false
25+
target:
26+
description: 'Set the target build stage to build.'
27+
default: ''
28+
required: false
2529
platforms:
2630
description: 'Comma separated list of platforms.'
2731
default: 'linux/amd64'
@@ -60,6 +64,7 @@ runs:
6064
pull: true
6165
push: true
6266
tags: ${{ inputs.tags }}
67+
target: ${{ inputs.target }}
6368
branding:
6469
icon: 'server'
6570
color: 'blue'

0 commit comments

Comments
 (0)