Try to make it github/gitea actionable.
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/tag Build is passing

This commit is contained in:
Stanislav Nikitin 2024-07-19 15:11:50 +05:00
parent b22fd7cdfc
commit c7e5ae7513
Signed by: pztrn
GPG Key ID: 1E944A0F0568B550
3 changed files with 25 additions and 0 deletions

View File

@ -17,3 +17,5 @@ RUN mkdir /home/container && chmod 0777 /home/container
ENV HOME=/home/container
ENV GOPATH=/home/container/go
ENV GOCACHE=/home/container/.cache
ENTRYPOINT ["/src/entrypoint.sh"]

19
action.yml Normal file
View File

@ -0,0 +1,19 @@
# action.yml
name: "Go Toolbox"
description: "A toolbox for golang applications development."
author: "Stanislav N. aka pztrn"
inputs:
command: # id of input
description: "Command to run."
required: true
default: "task"
args:
description: "Arguments to pass to command."
required: true
default: "-l"
runs:
using: "docker"
image: "Dockerfile"
args:
- ${{ inputs.command }}
- ${{ inputs.args }}

4
entrypoint.sh Normal file
View File

@ -0,0 +1,4 @@
#!/bin/bash
# Entrypoint that handles both GitHub/Gitea actions things and direct commands execution.
"$@"