kaniko/action.yaml
2024-04-29 11:42:36 +02:00

38 lines
900 B
YAML

name: kaniko
inputs:
dockerfile:
description: Dockerfile path
required: true
default: ./Dockerfile
registry:
description: Registry URL
required: true
default: git.gmoker.com
image:
description: Image name
required: true
default: ${{ gitea.repository }}:latest
username:
description: Registry username
required: true
default: ${{ gitea.repository_owner }}
password:
description: Registry password
required: true
default: ${{ gitea.token }}
tls:
description: Prevent push to http
required: true
default: true
runs:
using: docker
image: Dockerfile
args:
- ACTION_DOCKERFILE=${{ inputs.dockerfile }}
- ACTION_REGISTRY=${{ inputs.registry }}
- ACTION_IMAGE=${{ inputs.image }}
- ACTION_USERNAME=${{ inputs.username }}
- ACTION_PASSWORD=${{ inputs.password }}
- ACTION_TLS=${{ inputs.tls }}