mirror of
https://github.com/docker/setup-compose-action.git
synced 2026-07-11 17:18:57 +00:00
GitHub Action to set up Docker Compose
- TypeScript 47.7%
- Dockerfile 26.4%
- JavaScript 13.1%
- HCL 12.8%
|
Some checks failed
zizmor.yml / Merge pull request #126 from crazy-max/group-codeql-dependabot-updates (push) Failing after 0s
ci / main () (push) Has been cancelled
ci / main (cloud:latest) (push) Has been cancelled
ci / main (cloud:v2.29.1-desktop.2) (push) Has been cancelled
ci / main (latest) (push) Has been cancelled
ci / main (v2.32.4) (push) Has been cancelled
ci / multi (push) Has been cancelled
ci / standalone (push) Has been cancelled
ci / cache-binary (false) (push) Has been cancelled
ci / cache-binary (true) (push) Has been cancelled
codeql / analyze (push) Has been cancelled
test / test (push) Has been cancelled
validate / prepare (push) Has been cancelled
chore: group codeql dependabot updates |
||
|---|---|---|
| .github | ||
| __tests__ | ||
| dist | ||
| src | ||
| .dockerignore | ||
| .editorconfig | ||
| .gitattributes | ||
| .gitignore | ||
| .prettierignore | ||
| .prettierrc.json | ||
| .yarnrc.yml | ||
| action.yml | ||
| codecov.yml | ||
| dev.Dockerfile | ||
| docker-bake.hcl | ||
| eslint.config.mjs | ||
| LICENSE | ||
| package.json | ||
| README.md | ||
| tsconfig.json | ||
| vitest.config.ts | ||
| yarn.lock | ||
About
GitHub Action to set up Docker Compose.
Usage
name: ci
on:
push:
jobs:
compose:
runs-on: ubuntu-latest
steps:
-
name: Set up Docker Compose
uses: docker/setup-compose-action@v2
Note
If Docker Compose is already installed on the runner, the action will skip download. Otherwise, it will download and install the latest stable version available on GitHub.
To always download and install the latest version of Docker Compose:
-
name: Set up Docker Compose
uses: docker/setup-compose-action@v2
with:
version: latest
Customizing
inputs
The following inputs can be used as step.with keys:
| Name | Type | Default | Description |
|---|---|---|---|
version |
String | Compose version. (eg. v2.32.4, latest) |
|
cache-binary |
Bool | true |
Cache compose binary to GitHub Actions cache backend |
Contributing
Want to contribute? Awesome! You can find information about contributing to this project in the CONTRIBUTING.md
