Configuring CD to automate the deployment
After the pull/merge request is merged, continuous delivery (CD) comes into play. CD automates the release process by automatically deploying the services and applications for us. Usually, this involves a multi-stage process, where code is first automatically deployed to a staging environment and can then be manually deployed to other environments, up until production. If deployment to production is also an automated process, it is called continuous deployment instead of continuous delivery.
First, we need to get the credentials to authenticate with Docker Hub and Google Cloud. Then, we can set up the workflow for deploying our blog.
Getting Docker Hub credentials
Let’s start by getting the credentials to access Docker Hub:
- Go to https://hub.docker.com/.
- Click on your profile and go to your account settings.
- Click on the Security tab and press the New Access Token button.
- As a description, write
GitHub Actions...