kaniko/action.yaml
2024-05-02 16:38:09 +02:00

30 lines
759 B
YAML

inputs:
dockerfile:
description: Dockerfile path
required: true
default: ./Dockerfile
tag:
description: Image tag
required: true
default: ${{ gitea.ref_name }}
username:
description: Registry username
required: true
default: ${{ gitea.repository_owner }}
password:
description: Registry password
required: true
runs:
using: composite
steps:
- name: Build
run: ${{ gitea.action_path }}/build.sh
env:
- ACTION_DOCKERFILE=${{ inputs.dockerfile }}
- ACTION_TAG=${{ inputs.tag }}
- ACTION_REGISTRY=${{ gitea.server_url }}
- ACTION_IMAGE=${{ gitea.repository }}
- ACTION_USERNAME=${{ inputs.username }}
- ACTION_PASSWORD=${{ inputs.password }}