2023-02-04 11:51:49 +08:00
|
|
|
[![Version](https://img.shields.io/npm/v/@docker/actions-toolkit?label=version&logo=npm&style=flat-square)](https://www.npmjs.com/package/@docker/actions-toolkit)
|
|
|
|
[![Downloads](https://img.shields.io/npm/dw/@docker/actions-toolkit?logo=npm&style=flat-square)](https://www.npmjs.com/package/@docker/actions-toolkit)
|
2023-03-01 04:37:29 +08:00
|
|
|
[![Build workflow](https://img.shields.io/github/actions/workflow/status/docker/actions-toolkit/build.yml?label=build&logo=github&style=flat-square)](https://github.com/docker/actions-toolkit/actions?workflow=build)
|
2023-02-04 11:51:49 +08:00
|
|
|
[![Test workflow](https://img.shields.io/github/actions/workflow/status/docker/actions-toolkit/test.yml?label=test&logo=github&style=flat-square)](https://github.com/docker/actions-toolkit/actions?workflow=test)
|
2023-02-27 16:10:57 +08:00
|
|
|
[![E2E workflow](https://img.shields.io/github/actions/workflow/status/docker/actions-toolkit/e2e.yml?label=e2e&logo=github&style=flat-square)](https://github.com/docker/actions-toolkit/actions?workflow=e2e)
|
2023-02-04 11:51:49 +08:00
|
|
|
[![Codecov](https://img.shields.io/codecov/c/github/docker/actions-toolkit?logo=codecov&style=flat-square)](https://codecov.io/gh/docker/actions-toolkit)
|
|
|
|
|
2023-01-17 18:49:39 +08:00
|
|
|
# Actions Toolkit
|
|
|
|
|
|
|
|
Toolkit for Docker (GitHub) Actions.
|
2023-01-31 10:22:02 +08:00
|
|
|
|
|
|
|
## :test_tube: 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.
|
|
|
|
|
|
|
|
## About
|
|
|
|
|
|
|
|
This repository contains the source code for the toolkit that is consumed as
|
|
|
|
a library by most of our GitHub Actions:
|
|
|
|
|
|
|
|
* [docker/bake-action](https://github.com/docker/bake-action)
|
|
|
|
* [docker/build-push-action](https://github.com/docker/build-push-action)
|
|
|
|
* [docker/login-action](https://github.com/docker/login-action)
|
|
|
|
* [docker/metadata-action](https://github.com/docker/metadata-action)
|
|
|
|
* [docker/setup-buildx-action](https://github.com/docker/setup-buildx-action)
|
|
|
|
* [docker/setup-qemu-action](https://github.com/docker/setup-qemu-action)
|
|
|
|
|
|
|
|
This toolkit provides some utilities and common logic when developing GitHub
|
|
|
|
Actions and also acts as a minimal wrapper around our build tooling such as
|
|
|
|
[Buildx](https://github.com/docker/buildx) and [BuildKit](https://github.com/moby/buildkit)
|
|
|
|
and provides an easier API for interacting with them.
|
|
|
|
|
|
|
|
## Installation
|
|
|
|
|
|
|
|
```console
|
|
|
|
$ npm install @docker/actions-toolkit
|
|
|
|
```
|
|
|
|
|
|
|
|
## Usage
|
|
|
|
|
|
|
|
```js
|
2023-02-21 15:12:26 +08:00
|
|
|
const { Toolkit } = require('@docker/actions-toolkit/lib/toolkit')
|
2023-01-31 10:22:02 +08:00
|
|
|
const toolkit = new Toolkit()
|
|
|
|
```
|
|
|
|
|
|
|
|
## Contributing
|
|
|
|
|
|
|
|
Want to contribute to the Actions Toolkit? Awesome! You can find information
|
|
|
|
about contributing to this project in the [CONTRIBUTING.md](/.github/CONTRIBUTING.md)
|