20 lines
505 B
YAML
20 lines
505 B
YAML
name: Kaniko Build and Push
|
|
description: Build and push a Docker image to the Gitea registry using kaniko
|
|
inputs:
|
|
repo:
|
|
description: Gitea repository name to clone and build
|
|
required: true
|
|
image:
|
|
description: Image name in the registry (defaults to repo name)
|
|
required: false
|
|
default: ''
|
|
runs:
|
|
using: composite
|
|
steps:
|
|
- name: Build and push
|
|
shell: sh
|
|
env:
|
|
REPO: ${{ inputs.repo }}
|
|
IMAGE: ${{ inputs.image }}
|
|
run: sh ${{ github.action_path }}/build.sh
|