forgejo-kaniko-action/README.md
2025-06-17 14:17:56 -03:00

42 lines
1 KiB
Markdown

# Kaniko Action
Build OCI images using Kaniko.
## Usage
### Example: Basic Usage, all options.
```yaml
jobs:
cowsay:
runs-on: docker
steps:
- uses: https://git.kabelsalat.ch/s3lph/forgejo-kaniko-action@v1
with:
dockerfile: |
FROM debian:latest
RUN apt update && apt install --yes cowsay
image: docker.example.org/example/cowsay:latest
registry: docker.example.org
username: ${{ secrets.REGISTRY_USERNAME }}
password: ${{ secrets.REGISTRY_PASSWORD }}
```
### Example: Multiple Tags, Default registry
```yaml
jobs:
cowsay:
runs-on: docker
steps:
- uses: https://github.com/leandro-costa-oliveira/forgejo-kaniko-action@v2
with:
image: my-user/test-image:latest,my-user/test-image:${{ github.sha }}
username: ${{ secrets.REGISTRY_USERNAME }}
password: ${{ secrets.REGISTRY_PASSWORD }}
```
### Credits
Original creator of the action v1:
https://git.kabelsalat.ch/s3lph/forgejo-kaniko-action