This workflow builds and pushes the docker image for both frontend and backend.
- GCLOUD_PROJECT - GCP Project name.
- GCLOUD_SECRET_KEY - Base64 value of Service Account JSON key file.
- BUILD_ARGS - Build Args to pass during Docker build.
The service account should have the roles/artifactregistry.repoAdmin
IAM role attached to it.
If using the Pulumi modules to create, then the service account is created automatically.
- Navigate to the GCP IAM console and simply download a new Service account key for the role.
- Convert it to base64 and use as the secret value of
GCLOUD_SECRET_KEY
In the frontend build job, you might need to change the URL at which backend service is deployed. This is used as a build arg in frontend dockerfile.
To avoid unnecessary bot commits, this feature is disabled by default. If you want to enable CD and deploy the build on every commit, then just enable the deploy job.