

0 / 2 embers
0 / 3000 xp
click for more info
Complete a lesson to start your streak
click for more info
Still calibrating
click for more info
Not enough gems
Cost: 6 gems
1: Docker
incomplete
2: Continuous Deployment
incomplete
3: Google Cloud Platform
incomplete
4: Google Cloud SDK
incomplete
5: Google Artifact Registry
incomplete
6: Automate Builds
incomplete
This lesson's interactive features are locked, please to keep using them
Now that we've built the Docker image locally, let's build it automatically on every push to the main branch.
Use the setup-gcloud action to authenticate with GCP.
I recommend using the simple service account key JSON setup.
gcloud builds submit --tag REGION-docker.pkg.dev/PROJECT_ID/REPOSITORY/IMAGE:TAG .
You can copy/paste your actual value for the tag from your Artifact Registry repo page in the GCP console.
Paste the URL of your GitHub repo into the box and run the GitHub checks.