solvis-engineering/Docker Build and Push (Kaniko)
Builds and pushes a Docker container to AWS ECR or GHCR using Kaniko (Daemonless).
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| registry_type | Registry type: "ecr" or "github" | yes | — |
| image_name | Name of the image (repository name). For ECR, can be full URI or just repo name if aws_account_id is provided. | yes | — |
| dockerfile | Path to Dockerfile | no | ./Dockerfile |
| context | Build context | no | . |
| build_args | List of build-time variables (one per line, e.g. FOO=bar) | no | — |
| tag | Specific tag for the image. If empty, uses the short commit hash. | no | — |
| aws_region | AWS Region (required for ECR) | no | — |
| aws_account_id | AWS Account ID (optional, helps construct ECR URI if image_name is just repo name) | no | — |
| aws_access_key_id | AWS Access Key ID (optional) | no | — |
| aws_secret_access_key | AWS Secret Access Key (optional) | no | — |
| registry_username | Username for GitHub Container Registry | no | — |
| registry_password | Password/Token for GitHub Container Registry | no | — |
Outputs
| name | description |
|---|---|
| repository_uri | The full URI of the repository |
| image_uri | The full URI of the pushed image |