Tags | kubernetes github |
Hard Prerequisites | |
IMPORTANT: Please review these prerequisites, they include important information that will help you with this content. | |
|
|
Soft Prerequisites |
|
In the next chapters, we will be using GitHub to automate the process of building and pushing the Docker images and Helm Charts to Harbor using GitHub Actions. However, the communication with Harbor needs to be authenticated using its username and password.
So far we been using the docker login
command on the EC2 instance. Now we need store the Harbor credentials on GitHub using the GitHub Secrets, so it will know how to authenticate.
On your GitHub repository page, go to Settings
and then click on the Secrets and variables
on the left panel and the on Actions
.
Click on the button New repository secret
and create the following secrets, one at a time:
DOCKER_USERNAME
, secret: admin
DOCKER_PASSWORD
, secret: harbor12345
HARBOR_ENDPOINT
, secret: harbor.<your-domain>
We will be referencing these secrets in the GitHub Actions workflow files.