kaniko/action.yaml

30 lines
759 B
YAML
Raw Normal View History

2024-04-28 21:16:33 +00:00
inputs:
dockerfile:
description: Dockerfile path
required: true
default: ./Dockerfile
tag:
description: Image tag
2024-04-28 21:16:33 +00:00
required: true
default: ${{ gitea.ref_name }}
2024-04-28 21:16:33 +00:00
username:
description: Registry username
required: true
default: ${{ gitea.repository_owner }}
password:
description: Registry password
required: true
runs:
2024-05-02 14:38:09 +00:00
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 }}