No description
Find a file
2025-10-16 09:13:32 -03:00
.vscode feat: input context 2025-10-16 08:50:47 -03:00
action.yml feat: add context log 2025-10-16 09:13:32 -03:00
LICENSE feat: add license 2023-12-04 21:13:50 +01:00
README.md feat: input context 2025-10-16 08:50:47 -03:00

Kaniko Action

Build OCI images using Kaniko.

Usage

Example: Basic Usage, all options.

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: Custom build context

```yaml
jobs:
  build:
    runs-on: docker
    steps:
      - uses: actions/checkout@v4
      - uses: https://github.com/leandro-costa-oliveira/forgejo-kaniko-action@v3
        with:
          context: ./subdir
          image: my-user/test-image:latest
          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