From 61dbd267aa2feaf013e949b12ea3b2ce616365d6 Mon Sep 17 00:00:00 2001 From: Hamcha Date: Sat, 27 Apr 2024 20:20:49 +0200 Subject: [PATCH] add github action --- action.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 action.yml diff --git a/action.yml b/action.yml new file mode 100644 index 0000000..24a1168 --- /dev/null +++ b/action.yml @@ -0,0 +1,28 @@ +name: 'Deploy with shipit' +description: 'Use shipit to update GitOps deployments' +inputs: + provider: + description: JSON object with your provider configuration + required: true + changes: + description: JSON array of changes to apply + required: true + branch: + description: Branch to apply changes on + required: true + author: + description: Commit author + required: false + message: + description: Commit message + required: false +outputs: +runs: + using: 'docker' + image: 'Dockerfile' + env: + SHIPIT_PROVIDER: ${{ inputs.provider }} + SHIPIT_CHANGES: ${{ inputs.changes }} + SHIPIT_BRANCH: ${{ inputs.branch }} + SHIPIT_AUTHOR: ${{ inputs.author }} + SHIPIT_MESSAGE: ${{ inputs.message }} \ No newline at end of file