Try to make it github/gitea actionable.
This commit is contained in:
		| @@ -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
									
								
							
							
						
						
									
										19
									
								
								action.yml
									
									
									
									
									
										Normal 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
									
								
							
							
						
						
									
										4
									
								
								entrypoint.sh
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,4 @@ | ||||
| #!/bin/bash | ||||
|  | ||||
| # Entrypoint that handles both GitHub/Gitea actions things and direct commands execution. | ||||
| "$@" | ||||
		Reference in New Issue
	
	Block a user