We're sorry but this app doesn't work properly without JavaScript enabled. Please enable it to continue.

This lesson's interactive features are locked, please to keep using them

Automate Builds

Let's automatically build the Docker image on every push to the main branch.

Assignment

Use the setup-gcloud action to authenticate with GCP.

Use the Workload Identity Federation setup.

Update Your GitHub Action Workflow

  1. gcloud iam workload-identity-pools providers describe "my-repo" \
      --location="global" \
      --workload-identity-pool="github" \
      --format="value(name)"
    
  2. gcloud builds submit --tag us-central1-docker.pkg.dev/PROJECT_ID/notely-ar-repo/notely:latest .
    

Paste the URL of your GitHub repo into the box and run the GitHub checks.