diff --git a/docker/Dockerfile b/docker/Dockerfile index b05e5a2..78cf4d2 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -13,6 +13,5 @@ FROM public.ecr.aws/lambda/provided:al2023 RUN dnf update -y && \ dnf install -y git zip && \ dnf clean all -COPY --from=build /app/main ${LAMBDA_TASK_ROOT} -WORKDIR ${LAMBDA_TASK_ROOT} +COPY --from=build /app/main ./main ENTRYPOINT [ "./main" ] \ No newline at end of file diff --git a/infra/cfn/template-lambda-function.yaml b/infra/cfn/template-lambda-function.yaml index 4a2c412..c2658e0 100644 --- a/infra/cfn/template-lambda-function.yaml +++ b/infra/cfn/template-lambda-function.yaml @@ -105,29 +105,6 @@ Resources: Name: blog-deployment-webhook-api StageName: !Ref StageName EndpointConfiguration: REGIONAL - DefinitionBody: - openapi: "3.0.1" - info: - title: "Forgejo Webhook API" - version: "1.0" - paths: - /forgejo-webhook: - post: - summary: "Trigger Lambda via Forgejo Webhook" - x-amazon-apigateway-integration: - uri: - Fn::Sub: arn:aws:apigateway:${AWS::Region}:lambda:path/2015-03-31/functions/${MyLambdaFunction.Arn}/invocations - httpMethod: POST - type: aws_proxy - responses: - '200': - description: "Successful response" - '400': - description: "Bad Request - Incorrect request payload format" - '401': - description: "Unauthorized - Signature verification failed" - '500': - description: "Server error - Deployment process failed" Outputs: ApiEndpoint: