whoan/Build docker images using cache
Use registry to pull/push cache for an image (stages included)
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| image_name | Name of the image to build | no | — |
| compose_file | Path to compose file | no | — |
| services_regex | (Optional) Regex to filter services from compose file | no | .+ |
| username | (Optional) Docker's registry user (needed to push image to repository, or to pull from private repository) | no | — |
| password | (Optional) Docker's registry password (needed to push image to repository, or to pull from private repository) | no | — |
| session | (Optional) Docker registry's session (extra auth parameters). For the AWS ECR, means setting AWS_SESSION_TOKEN environment variable). | no | — |
| registry | (Optional) Docker registry (default: Docker Hub's registry) | no | — |
| image_tag | (Optional) Tag/s of the image to build (default: latest) | no | latest |
| context | (Optional) Docker context (default: ./) | no | . |
| dockerfile | (Optional) Name of the Dockerfile (default: Dockerfile) | no | Dockerfile |
| push_image_and_stages | (Optional) Test any command before pushing. Use false to avoid pushing to registry (default: true) | no | true |
| stages_image_name | (Optional) Use a custom name for the stages. Useful if using a job matrix (default: ${image_name}-stages) | no | — |
| push_git_tag | (Optional) In addition to `image_tag` value, you can also push current git tag (default: false) | no | false |
| pull_image_and_stages | (Optional) Set to false to avoid pulling from registry (default: true) | no | true |
| build_extra_args | (Optional) Extra arguments to pass to docker build | no | — |
Outputs
| name | description |
|---|---|
| FULL_IMAGE_NAME | Full name of the Docker Image with the Registry (if provided) and Namespace included |