From 7b4be70a1aaccdb8f6e631fdb200cd61405b061f Mon Sep 17 00:00:00 2001 From: Lucas TESSON Date: Wed, 10 Apr 2024 09:16:08 +0200 Subject: [PATCH] feat: add support of GitHub Actions --- action.yaml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 action.yaml diff --git a/action.yaml b/action.yaml new file mode 100644 index 0000000..ae738bc --- /dev/null +++ b/action.yaml @@ -0,0 +1,18 @@ +name: 'CTFd-Setup' +author: 'ctfer-io' +description: 'Setup a CTFd from a versionned configuration file' + +inputs: + file: + description: 'Configuration file to use for setting up CTFd. If let empty, will default the values and look for secrets in expected environment variables. For more info, refers to the documentation.' + required: false + url: + description: 'URL to reach the CTFd instance.' + required: true + +runs: + using: 'docker' + image: 'Dockerfile' + env: + FILE: ${{ inputs.file }} + CTFD_URL: ${{ inputs.url }}