feat: add action
This commit is contained in:
parent
0639c180f4
commit
968255a5b2
3 changed files with 23 additions and 1 deletions
6
Dockerfile
Normal file
6
Dockerfile
Normal file
|
@ -0,0 +1,6 @@
|
|||
# syntax=docker/dockerfile:1
|
||||
FROM golang:1.23.0
|
||||
|
||||
RUN go install github.com/magefile/mage@v1.15.0
|
||||
|
||||
ENTRYPOINT ["mage"]
|
2
LICENSE
2
LICENSE
|
@ -1,6 +1,6 @@
|
|||
MIT License
|
||||
|
||||
Copyright (c) 2024 actions
|
||||
Copyright (c) 2024 Dan Anglin
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
||||
|
||||
|
|
16
action.yaml
Normal file
16
action.yaml
Normal file
|
@ -0,0 +1,16 @@
|
|||
---
|
||||
name: "Mage CI Action"
|
||||
description: "Runs a mage target defined in your project's repository"
|
||||
|
||||
inputs:
|
||||
target:
|
||||
description: "The mage target to run"
|
||||
required: true
|
||||
|
||||
runs:
|
||||
using: "docker"
|
||||
image: "Dockerfile"
|
||||
entrypoint: "mage"
|
||||
args:
|
||||
- -v
|
||||
- ${{ inputs.target }}
|
Loading…
Reference in a new issue