Skip to content

Repository files navigation

docker_buildx

GitHub Action to build and publish images using Docker Buildx.

Inputs

The accepted inputs are:

NameTypeDefaultMandatoryDescription
tagStringlatestNoTags (comma separated) to apply to the image
imageNameStringYesName of the image
contextString.NoRelative path of where to execute docker build in relation to repository root
dockerFileStringDockerfileNoName of the Dockerfile
buildArgStringNoBuild arguments (comma separated) used to build the image
publishBooleanfalseNoIndicate if the builded image should be published on Docker HUB
platformStringlinux/amd64,linux/arm64,linux/arm/v7NoPlatforms (comma separated) that should be used to build the image
dockerHubUserStringOnly if publish is trueUser that will publish the image
dockerHubPasswordStringOnly if publish is truePassword of the dockerHubUser

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
dockerHubUser: YOUR_USER_HERE
dockerHubPassword: YOUR_PASSWORD_HERE

About

GitHub actions with docker buildx

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages