Go to file
2023-09-13 11:42:08 +02:00
.github chore: github form templates 2023-09-13 09:31:39 +02:00
__mocks__/@actions add provenance and sbom inputs 2023-03-28 10:00:29 +02:00
__tests__ test: set input with hash symbol 2023-06-13 12:49:37 +02:00
dist chore: update generated content 2023-09-12 08:58:48 +02:00
src display proxy configuration 2023-09-11 21:02:30 +02:00
test ci: proxy config check 2023-09-11 21:02:31 +02:00
.dockerignore Enhance workflow 2021-03-31 15:23:37 +02:00
.editorconfig Initial commit 2020-10-08 00:52:52 +02:00
.eslintignore chore: update dev dependencies 2023-09-09 18:06:57 +02:00
.eslintrc.json chore: update dev dependencies 2023-09-09 18:06:57 +02:00
.gitattributes Initial commit 2020-10-08 00:52:52 +02:00
.gitignore Update gitignore 2020-12-19 03:24:28 +01:00
.prettierrc.json Handle git sha version of buildx 2021-07-01 15:48:15 +02:00
action.yml chore: node 20 as default runtime 2023-09-09 18:06:58 +02:00
codecov.yml Handle git sha version of buildx 2021-07-01 15:48:15 +02:00
dev.Dockerfile chore: update dev dependencies 2023-09-09 18:06:57 +02:00
docker-bake.hcl chore: update dev dependencies and workflow 2022-03-21 11:28:57 +01:00
jest.config.ts switch to actions-toolkit implementation 2023-02-24 10:15:02 +01:00
LICENSE Initial commit 2020-10-08 00:52:52 +02:00
package.json chore(deps): Bump @actions/core from 1.10.0 to 1.10.1 2023-09-12 06:27:36 +00:00
README.md docs: bump actions to latest major 2023-09-12 10:08:58 +02:00
tsconfig.json switch to actions-toolkit implementation 2023-02-24 10:15:02 +01:00
yarn.lock chore(deps): Bump @actions/core from 1.10.0 to 1.10.1 2023-09-12 06:27:36 +00:00

GitHub release GitHub marketplace CI workflow Test workflow Codecov

About

GitHub Action to use Docker Buildx Bake as a high-level build command.

Screenshot


Usage

name: ci

on:
  push:
    branches:
      - 'master'

jobs:
  bake:
    runs-on: ubuntu-latest
    steps:
      -
        name: Checkout
        uses: actions/checkout@v4
      -
        name: Set up Docker Buildx
        uses: docker/setup-buildx-action@v3
      -
        name: Login to DockerHub
        uses: docker/login-action@v3
        with:
          username: ${{ secrets.DOCKERHUB_USERNAME }}
          password: ${{ secrets.DOCKERHUB_TOKEN }}
      -
        name: Build and push
        uses: docker/bake-action@v4
        with:
          push: true

Customizing

inputs

Following inputs can be used as step.with keys

List type is a newline-delimited string

set: target.args.mybuildarg=value
set: |
  target.args.mybuildarg=value
  foo*.args.mybuildarg=value  

CSV type is a comma-delimited string

targets: default,release
Name Type Description
builder String Builder instance (see setup-buildx action)
files List/CSV List of bake definition files
workdir String Working directory of execution
targets List/CSV List of bake targets (default target used if empty)
no-cache Bool Do not use cache when building the image (default false)
pull Bool Always attempt to pull a newer version of the image (default false)
load Bool Load is a shorthand for --set=*.output=type=docker (default false)
provenance Bool/String Provenance is a shorthand for --set=*.attest=type=provenance
push Bool Push is a shorthand for --set=*.output=type=registry (default false)
sbom Bool/String SBOM is a shorthand for --set=*.attest=type=sbom
set List List of targets values to override (eg: targetpattern.key=value)
source String Remote bake definition to build from

outputs

The following outputs are available

Name Type Description
metadata JSON Build result metadata

Contributing

Want to contribute? Awesome! You can find information about contributing to this project in the CONTRIBUTING.md