Forgejo Action compatible action that can be used to build and push images to Forgejo Container Registry.
Find a file
2026-10-27 14:15:31 +01:00
action.yaml remove local caching and cache repo input 2026-10-27 14:15:31 +01:00
overwrite_tag.sh add script to overwrite tag 2026-10-07 20:40:44 +02:00
readme.md add action description [skip ci] 2026-10-07 16:40:01 +02:00

kaniko-action

This is a Forgejo Action compatible action that can be used to build and push images to Forgejo Container Registry.
This action is intended for internal use only.

Requirements

The repository that calls the action must have valid secrets to push to registry:

  • REGISTRY_USER
  • REGISTRY_TOKEN

The repository that calls the action must have cross-repository access to this repository.

Usage

name: kaniko build
on:
  push:
    branches: [master]

jobs:
  build-and-push:
    runs-on: ubuntu-latest
    container:
      image: ghcr.io/osscontainertools/kaniko:alpine
    steps:
      # Required
      - name: Install NodeJS for Action Compatibility
        run: apk add --no-cache nodejs

      - name: Checkout Source Code
        uses: actions/checkout@v4

      - name: Run Kaniko Build Push Action
        uses: https://code.verua.online/verua/kaniko-action
        with:
          registry_user: ${{ secrets.REGISTRY_USER }}
          registry_token: ${{ secrets.REGISTRY_TOKEN }}
          dockerfile_path: 'sub-directory/Dockerfile'
          target_stage: 'development' # optional
          destination_image: '${{ forgejo.repository }}/my-awesome-image'
          image_tag: 'latest' # optional