2024-04-28 21:16:33 +00:00
|
|
|
inputs:
|
|
|
|
dockerfile:
|
|
|
|
description: Dockerfile path
|
|
|
|
required: true
|
|
|
|
default: ./Dockerfile
|
2024-04-30 21:12:36 +00:00
|
|
|
tag:
|
|
|
|
description: Image tag
|
2024-04-28 21:16:33 +00:00
|
|
|
required: true
|
2024-04-30 21:12:36 +00:00
|
|
|
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 }}
|