...

/

Create GitHub Actions CI/CD Pipeline

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.

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.

  1. Create the GitHub Actions directories for the bash scripts:
Press + to interact
cd educative-course-github-pipeline
mkdir -p .github/scripts
  1. Run
...