Build a Docker Image and Publish It to GCP GCR & Artifact Registry using Github Actions

preview_player
Показать описание

▬▬▬▬▬ Experience & Location 💼 ▬▬▬▬▬
► I’m a Senior Software Engineer at Juniper Networks (12+ years of experience)
► Located in San Francisco Bay Area, CA (US citizen)

▬▬▬▬▬▬ Connect with me 👋 ▬▬▬▬▬▬

▬▬▬▬▬▬ Related videos 👨‍🏫 ▬▬▬▬▬▬

=========
⏱️TIMESTAMPS⏱️
0:00 Intro
0:31 Create GitHub Repository
1:17 Create Flask App
2:05 Create Docker Image for Flask App
2:58 Create Service Account in GCP
4:34 Create GitHub Actions Docker Build and Push Workflow
10:20 Use GitHub Actions to Push Docker to Artifact Registry
13:14 Increment Git Tag for Each Commit and Use It for Docker Image

=========
Source Code

#GitHubActions #GCP #GCR
Рекомендации по теме
Комментарии
Автор

Pretty sure you just saved me 1 to 2 whole days' work. Subscribed!

alexleung
Автор

Excellent content. Congratulations on the knowledge transferred. Thank you very much.

josenildoalves
Автор

This helps me with creation of service account for Artifact Registry. Thank you.

radeksmola
Автор

great, just what I was looking for)) Good that after subscribtion any youtube search now shows your results in top list) Documentation is so confusing without any practical usages)

genyklemberg
Автор

Great content, could you please let me know how to go about the same if I am not dealing with github but some other repo. My basic goal for the moment is to upload my dockerfiles to artifact registry

AmitKumar-hmgx
Автор

Great topic Anton. Any chance you can show how to create PyPI repos using Artifact Registry. I think it would be awesome to see

sashameltser
Автор

Thank you Anton! There is a way to use docker layer caching for speed up this process on larger docker images?

diegobloomalert
Автор

This is amazing, but I believe the syntax has changed in the last year. Would you be able to make a video on not only publishing to the artifact registry but also auto-deploying to a kubernetes cluster?

rafinonato
Автор

Thank you for this informative video! Would you be able to make a video about deploying and running containers from docker images in artifact registry to a GCE instance using GitHub Actions?

potatocoder
Автор

wow very nice tutorial, thank you! btw just curious, how to pull container image from private google artifacts registry in github actions?

fourirakbar
Автор

Is that necessary to create a separate dockerfile in the repo to create a container image or if we mentioned the docker details in the workflow is enough to create a container image...

thirumavalavanc
Автор

Hi,
at 2:10, what would the "production ready" image look like ?

m_sen
Автор

Excellent, i followed same but it is failing during pushing image to GCR, saying required permissions don't have on service account. Do you have any idea how that can be fixed?

zuzjvil
Автор

Hello. I configured everything as you show but unfortunately I`m getting permissions denied on push step. For both cases.

olegderivedmed
Автор

It's now not recommended anymore to use key auth, but Workload Identity Federation instead

mklueh