feat: add action

This commit is contained in:
Dan Anglin 2024-08-27 18:48:26 +01:00
parent 0639c180f4
commit 968255a5b2
Signed by: dananglin
GPG key ID: 0C1D44CFBEE68638
3 changed files with 23 additions and 1 deletions

6
Dockerfile Normal file
View 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"]

View file

@ -1,6 +1,6 @@
MIT License 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: 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
View 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 }}