tenongene / QuoteGen

0 stars 0 forks source link

Building a CI/CD Pipeline in GitLab, with a DockerHub Webhook configured for Lambda Function #4

Open tenongene opened 10 months ago

tenongene commented 10 months ago

I migrated the application code to GitLab as my preferred platform for continuous integration and continuous deployment.

Image

============================================================================

I configured environment variables in the GitLab pipeline with credentials to access the DockerHub registry for automatically pushing any image updates.

Image

Image

================================================================================

Wrote the .gitlab-ci.yaml file definition for the pipeline that will propagate changes in the application to the image upon a push to the code repository. I used a Docker in Docker runner for the pipeline.

Image

============================================================================

Ran initial pipeline with a test change to the application code to verify successful build of application docker image.

Image

Image

==============================================================================

Updated image successfully pushed to Docker Hub.

Image

tenongene commented 10 months ago

Image

Image

=====================================================================

Created function with function URL: https://aicu5rzgtfpqmwhaua4z7sijyi0snlsk.lambda-url.us-east-1.on.aws/

Image

tenongene commented 10 months ago

I configured a webhook for the application image repository in docker hub with the URL of the lambda function for which a POST request will be sent for image update.

Image