# Prepare GitHub Repository

## In this learning path

- [Introduction](https://learn.arm.com/learning-paths/laptops-and-desktops/self_hosted_cicd_github/)
- [Background: GitHub Actions and CI/CD](https://learn.arm.com/learning-paths/laptops-and-desktops/self_hosted_cicd_github/background/)
- [Further Context](https://learn.arm.com/learning-paths/laptops-and-desktops/self_hosted_cicd_github/how-to-1/)
- [Setting up the DockerHub Repository](https://learn.arm.com/learning-paths/laptops-and-desktops/self_hosted_cicd_github/set-up-docker-repo/)
- [Prepare GitHub Repository](https://learn.arm.com/learning-paths/laptops-and-desktops/self_hosted_cicd_github/prepare-github-repo/)
- [Prepare the runner](https://learn.arm.com/learning-paths/laptops-and-desktops/self_hosted_cicd_github/prepare-runner/)
- [Create the Self-Hosted Runner in GitHub](https://learn.arm.com/learning-paths/laptops-and-desktops/self_hosted_cicd_github/create-self-hosted-runner-github/)
- [Running CI/CD pipeline](https://learn.arm.com/learning-paths/laptops-and-desktops/self_hosted_cicd_github/how-to-2/)
- [Summary](https://learn.arm.com/learning-paths/laptops-and-desktops/self_hosted_cicd_github/summary/)
- [Next Steps](https://learn.arm.com/learning-paths/laptops-and-desktops/self_hosted_cicd_github/_next-steps/)

Now, you will prepare your GitHub repository as follows:

1. Go to GitHub and log in with your account credentials.
2. In the top right corner, click the + dropdown and select Import repository.

1. In the Import your project to GitHub section:
   - Paste the following link [https://github.com/dawidborycki/arm-lp-ci-cd-net.git](https://github.com/dawidborycki/arm-lp-ci-cd-net.git) into the ‘Your old repository’s clone URL’ field.
   - Set the repository name, for example, lp-ci-cd-net.
   - Click the Begin import button.

After the import is complete, you will create two secrets that will store your Docker username and token. Proceed as follows:

1. Go to your repository settings, and on the left, scroll down to Secrets and variables, then click Actions:
   
   ![Image Alt Text:img6](https://learn.arm.com/learning-paths/laptops-and-desktops/self_hosted_cicd_github/figures/06.webp)

2. Under Actions secrets and variables, click the New repository secret button. This opens the New secret window, where you should configure the secret as follows:
   - Name: DOCKER_USERNAME
   - Value: <TYPE_YOUR_USERNAME>
   - Click the Add secret button

   ![Image Alt Text:img7](https://learn.arm.com/learning-paths/laptops-and-desktops/self_hosted_cicd_github/figures/07.webp)

Similarly, create another secret:
- Name: DOCKER_PASSWORD
- Value: <PASTE_YOUR_TOKEN>
