@@ -90,6 +90,7 @@ Build Docker image and push it.
9090 repository : " ${{ github.event.repository.name }}"
9191 login : " ${{ secrets.DOCKERHUB_USERNAME }}"
9292 password : " ${{ secrets.DOCKERHUB_PASSWORD }}"
93+ platforms : linux/amd64,linux/arm64
9394
9495 outputs :
9596 image : ${{ steps.build.outputs.image }}
@@ -102,25 +103,34 @@ Build Docker image and push it.
102103
103104
104105<!-- markdownlint-disable -->
106+
105107## Inputs
106108
107109| Name | Description | Default | Required |
108110|------|-------------|---------|----------|
109111| build-args | List of build-time variables | N/A | false |
112+ | cache-from | List of external cache sources for buildx (e.g., user/app:cache, type=local,src=path/to/dir) | type=gha | false |
113+ | cache-to | List of cache export destinations for buildx (e.g., user/app:cache, type=local,dest=path/to/dir) | type=gha,mode=max | false |
110114| file | Dockerfile name | Dockerfile | false |
115+ | image\_ name | Image name (excluding registry). Defaults to {{$organization/$repository}}. | | false |
111116| login | Docker login | | false |
112117| organization | Organization | N/A | true |
113118| password | Docker password | | false |
119+ | platforms | List of target platforms for build (e.g. linux/amd64,linux/arm64,linux/riscv64,linux/ppc64le,linux/s390x,etc) | linux/amd64 | false |
114120| registry | Docker registry | N/A | true |
115121| repository | Repository | N/A | true |
122+ | ssh | List of SSH agent socket or keys to expose to the build | N/A | false |
116123| tags | List of tags (supports https://github.com/docker/metadata-action#tags-input) | N/A | false |
124+ | target | Sets the target stage to build | | false |
117125| workdir | Working directory | ./ | false |
118126
127+
119128## Outputs
120129
121130| Name | Description |
122131|------|-------------|
123132| image | Docker image name |
133+ | metadata | Docker image metadata |
124134| tag | Docker image tag |
125135<!-- markdownlint-restore -->
126136
@@ -219,7 +229,7 @@ In general, PRs are welcome. We follow the typical "fork-and-pull" Git workflow.
219229
220230## Copyright
221231
222- Copyright © 2017-2022 [Cloud Posse, LLC](https://cpco.io/copyright)
232+ Copyright © 2017-2023 [Cloud Posse, LLC](https://cpco.io/copyright)
223233
224234
225235
0 commit comments