Prepare GitHub repository

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.

Image Alt Text:img5

  1. In the Import your project to GitHub section:

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

  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

  1. Similarly, create another secret:
  • Name: DOCKER_PASSWORD
  • Value: <PASTE_YOUR_TOKEN>
Back
Next