CrazyMax 6c87dcca98 Merge pull request #94 from crazy-max/setOutput
Remove workaround for setOutput
2022-10-12 08:34:11 +02:00
2022-10-12 07:02:18 +02:00
2022-10-12 07:02:18 +02:00
2022-10-12 07:02:18 +02:00
2020-10-08 01:00:09 +02:00
2021-03-31 15:23:37 +02:00
2020-10-08 00:52:52 +02:00
2020-10-08 00:52:52 +02:00
2020-12-19 03:24:28 +01:00
2022-07-11 09:40:50 -04:00
2021-07-01 15:48:15 +02:00
2022-05-04 14:58:10 +02:00
2020-10-08 00:52:52 +02:00
2022-10-07 16:41:51 +02:00

GitHub release GitHub marketplace Test workflow Codecov

🧪 Experimental

This repository is considered EXPERIMENTAL and under active development until further notice. It is subject to non-backward compatible changes or removal in any future version, so you should pin to a specific tag/commit of this action in your workflow (i.e docker/bake-action@v1.1.3).

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@v3
      -
        name: Set up Docker Buildx
        uses: docker/setup-buildx-action@v2
      -
        name: Login to DockerHub
        uses: docker/login-action@v2
        with:
          username: ${{ secrets.DOCKERHUB_USERNAME }}
          password: ${{ secrets.DOCKERHUB_TOKEN }}
      -
        name: Build and push
        uses: docker/bake-action@v2
        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)
push Bool Push is a shorthand for --set=*.output=type=registry (default false)
set List List of targets values to override (eg: targetpattern.key=value)
source String Remote bake definition to build from

outputs

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

Description
GitHub Action to use Docker Buildx Bake as a high-level build command
Readme 32 MiB
Languages
TypeScript 84.8%
HCL 7.4%
Dockerfile 7.4%
Go 0.4%