Try out Serverless and build a deploy button endpoint to be used with a Flic button
npm install serverless -g
npm install
Create a file gitlab-url.txt
with the url in clear text.
serverless offline start
This stores the credentials in the shell session only.
Windows:
set AWS_ACCESS_KEY_ID=
IDset AWS_SECRET_ACCESS_KEY=
KEYset AWS_DEFAULT_REGION=
REGION
Linux:
export AWS_ACCESS_KEY_ID=
IDexport AWS_SECRET_ACCESS_KEY=
KEYexport AWS_DEFAULT_REGION=
REGION
serverless deploy
Example:
- Method: POST
- Body: { "token": "", "email": "", "projectId": <Get-from-gitlab, general settings section>, "jobName": "" }