Create GitHub Actions CI/CD Pipeline
In this lesson, we will create a CI/CD pipeline using GitHub Actions to automatically deploy our changes to EB.
We'll cover the following...
We'll cover the following...
Since we now have our Symfony application deployed to AWS Elastic Beanstalk, let’s create a CI/CD pipeline that will deploy our changes automatically whenever we push a commit to the GitHub repository.
Import the GitHub repo
Let’s bring our previous work on Symfony into the terminal below.
- Run the command below to import the GitHub repo:
Press + to interact
git clone --branch development https://$(echo $GITHUB_USERNAME)@github.com/$(echo $GITHUB_USERNAME)/educative-course-github-pipeline.git
Your password is the PAT you created earlier.
Create a GitHub Actions pipeline
We will now create a GitHub Actions pipeline to continuously integrate and deploy code changes.
- Create the GitHub Actions directories for the bash scripts:
Press + to interact
cd educative-course-github-pipelinemkdir -p .github/scripts
- Run