Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ilteoood/docker_buildx
GitHub actions with docker buildx
https://github.com/ilteoood/docker_buildx
Last synced: 7 days ago
JSON representation
GitHub actions with docker buildx
- Host: GitHub
- URL: https://github.com/ilteoood/docker_buildx
- Owner: ilteoood
- Created: 2020-01-06T11:17:24.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2024-10-07T04:08:32.000Z (3 months ago)
- Last Synced: 2024-12-25T17:06:09.468Z (14 days ago)
- Language: JavaScript
- Size: 148 KB
- Stars: 23
- Watchers: 3
- Forks: 12
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
Awesome Lists containing this project
README
# docker_buildx
GitHub Action to build and publish images using [Docker Buildx](https://docs.docker.com/buildx/working-with-buildx/).
## Inputs
The accepted inputs are:| Name | Type | Default | Mandatory | Description |
|---------------|-----------|-----------|-------------|-----------------------------------------------------------------|
| `tag` | String | `latest` | No | Tags (*comma separated*) to apply to the image |
| `imageName` | String | | Yes | Name of the image |
| `dockerFile` | String | `Dockerfile` | No | Name of the Dockerfile |
| `buildArg` | String | | No | Build arguments (*comma separated*) used to build the image |
| `publish` | Boolean | `false` | No | Indicate if the builded image should be published on Docker HUB |
| `platform` | String | `linux/amd64,linux/arm64,linux/arm/v7` | No | Platforms (*comma separated*) that should be used to build the image | |
| `dockerUser` | String | (value of `dockerHubUser`) | Only if `publish` is true | User that will publish the image |
| `dockerHubUser` | String | | Only if `publish` is true | (DEPRECATED) User that will publish the image |
| `dockerPassword` | String | (value of `dockerHubUser`) | Only if `publish` is true | Password of the `dockerUser` |
| `dockerHubPassword` | String | | Only if `publish` is true | (DEPRECATED) Password of the `dockerHubUser` |
| `dockerServer` | String | | | Registry, empty uses dockerHub |
| `load` | Boolean | `false` | No | Indicate if you want to load image into docker |
| `target` | String | | No | Set the target build stage to build |
| `context` | String | `.` | No | Set the context path |
## Example of usage```
jobs:
build:
runs-on: ubuntu-latest
name: Build image job
steps:
- name: Checkout master
uses: actions/checkout@master
- name: Build and publish image
uses: ilteoood/docker_buildx@master
with:
publish: true
imageName: YOUR_IMAGE_NAME_HERE
dockerUser: YOUR_USER_HERE
dockerPassword: YOUR_PASSWORD_HERE
```
## Do you like my work?