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

  Рет қаралды 33,359

Anton Putra

Anton Putra

Күн бұрын

Пікірлер: 55
@AntonPutra
@AntonPutra Жыл бұрын
🔴 - To support my channel, I’d like to offer Mentorship/On-the-Job Support/Consulting - me@antonputra.com
@alexleung842
@alexleung842 2 жыл бұрын
Pretty sure you just saved me 1 to 2 whole days' work. Subscribed!
@AntonPutra
@AntonPutra 2 жыл бұрын
Thanks!
@genyklemberg
@genyklemberg 11 ай бұрын
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)
@AntonPutra
@AntonPutra 11 ай бұрын
Cool, thanks. Use Artifact Registry, I think GCR will be deprecated soon.
@AntonPutra
@AntonPutra Жыл бұрын
👉 How to Manage Secrets in Terraform - kzbin.info/www/bejne/aX-TpXqBrNt1mqM 👉 Terraform Tips & Tricks - kzbin.info/www/bejne/bYScZaKLid5lsJY 👉 ArgoCD Tutorial - kzbin.info/www/bejne/sHjRlZqafMZkisU
@radeksmola1898
@radeksmola1898 2 жыл бұрын
This helps me with creation of service account for Artifact Registry. Thank you.
@AntonPutra
@AntonPutra 2 жыл бұрын
welcome!
@m_sen8710
@m_sen8710 Жыл бұрын
Hi, at 2:10, what would the "production ready" image look like ?
@AntonPutra
@AntonPutra Жыл бұрын
Well I was referring to the multistage docker build which is based either on scratch or distrolless image. Exampe - github.com/GoogleContainerTools/distroless/tree/main/examples/python3-requirements
@m_sen8710
@m_sen8710 Жыл бұрын
@@AntonPutra oh ok! Thank you 🙂
@RoniVituli
@RoniVituli Жыл бұрын
Thank you very much! very helpful! 😋
@AntonPutra
@AntonPutra Жыл бұрын
Thanks Roni!
@AmitKumar-hm4gx
@AmitKumar-hm4gx 9 ай бұрын
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
@josenildoalves
@josenildoalves 2 жыл бұрын
Excellent content. Congratulations on the knowledge transferred. Thank you very much.
@AntonPutra
@AntonPutra 2 жыл бұрын
Glad it was helpful!
@rafinonato
@rafinonato Жыл бұрын
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?
@AntonPutra
@AntonPutra Жыл бұрын
Sure, will do
@diegobloomalert929
@diegobloomalert929 3 жыл бұрын
Thank you Anton! There is a way to use docker layer caching for speed up this process on larger docker images?
@AntonPutra
@AntonPutra 3 жыл бұрын
Docker has a GitHub Action with ability to cache layers, maybe you can extract that part from there - github.com/docker/build-push-action/blob/master/docs/advanced/cache.md
@Buddha609
@Buddha609 Жыл бұрын
that was very helpfull, thanks
@AntonPutra
@AntonPutra Жыл бұрын
Glad it helped
@jameeghouri775
@jameeghouri775 2 жыл бұрын
very helping. thanks
@AntonPutra
@AntonPutra 2 жыл бұрын
Thanks jamee!
@potatocoder5090
@potatocoder5090 Жыл бұрын
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?
@AntonPutra
@AntonPutra Жыл бұрын
Sure sometime in the future
@olegderivedmed9285
@olegderivedmed9285 Жыл бұрын
Hello. I configured everything as you show but unfortunately I`m getting permissions denied on push step. For both cases.
@olegderivedmed9285
@olegderivedmed9285 Жыл бұрын
I even tried with "owner" permission for service account. Don`t works..
@AntonPutra
@AntonPutra Жыл бұрын
They recently released a new cloud functions that are based on cloud run service so far as I remember. Try to look into that
@thirumavalavanc8407
@thirumavalavanc8407 2 жыл бұрын
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...
@AntonPutra
@AntonPutra 2 жыл бұрын
well you need a dockerfile or github action that can build one
@fourirakbar5745
@fourirakbar5745 2 жыл бұрын
wow very nice tutorial, thank you! btw just curious, how to pull container image from private google artifacts registry in github actions?
@AntonPutra
@AntonPutra 2 жыл бұрын
your k8s service account that you use to create k8s nodes need to have object storage viewer access to the gs bucket with images
@SrinivasaRaoThammaneni
@SrinivasaRaoThammaneni Жыл бұрын
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?
@AntonPutra
@AntonPutra Жыл бұрын
see if they now require new set of permissions (gcp)
@olegderivedmed9285
@olegderivedmed9285 Жыл бұрын
Same for me. Did you find solution?
@achala1100
@achala1100 2 жыл бұрын
Excellent, l have pushed to artifact
@AntonPutra
@AntonPutra 2 жыл бұрын
Thanks!
@bronxed3666
@bronxed3666 3 жыл бұрын
excellent content. thank you
@AntonPutra
@AntonPutra 3 жыл бұрын
Much appreciated!
@christopherrobin5796
@christopherrobin5796 7 ай бұрын
then how to deploy to GCR?
@AntonPutra
@AntonPutra 7 ай бұрын
you mean GKE? well i have few tutorials on that topic
@sashameltser7374
@sashameltser7374 2 жыл бұрын
Great topic Anton. Any chance you can show how to create PyPI repos using Artifact Registry. I think it would be awesome to see
@AntonPutra
@AntonPutra 2 жыл бұрын
Thank you for the suggestion!
@pradeepg4498
@pradeepg4498 8 ай бұрын
How to use git lfs in gcloud
@AntonPutra
@AntonPutra 8 ай бұрын
I've never used it myself, why not to use object store? But i found one implementation for gcp - github.com/vitalibo/git-lfs/
@mklueh
@mklueh 2 жыл бұрын
It's now not recommended anymore to use key auth, but Workload Identity Federation instead
@AntonPutra
@AntonPutra 2 жыл бұрын
Noted
@abdurrazaq8127
@abdurrazaq8127 3 жыл бұрын
Thank you
@AntonPutra
@AntonPutra 3 жыл бұрын
You're welcome
@novanova2906
@novanova2906 3 жыл бұрын
how to deploy GKE?
@AntonPutra
@AntonPutra 3 жыл бұрын
How to Create GKE Cluster Using TERRAFORM from Scratch? (GCP Shared VPC | Terraform GCP Kubernetes) - kzbin.info/www/bejne/joXGoKZtqJWcetE
@novanova2906
@novanova2906 3 жыл бұрын
@@AntonPutra how to Deploy the Docker image to the GKE cluster? used kustomize?
Google App Engine - how to deploy React client and Node.js API Server
1:03:31
Lazy days…
00:24
Anwar Jibawi
Рет қаралды 9 МЛН
Why no RONALDO?! 🤔⚽️
00:28
Celine Dept
Рет қаралды 115 МЛН
Quando A Diferença De Altura É Muito Grande 😲😂
00:12
Mari Maria
Рет қаралды 34 МЛН
Что-что Мурсдей говорит? 💭 #симбочка #симба #мурсдей
00:19
Симбочка Пимпочка
Рет қаралды 4,6 МЛН
Maven Tutorial - Crash Course
26:08
Marco Codes
Рет қаралды 186 М.
How to Create Your Own GitHub Actions?
14:23
Anton Putra
Рет қаралды 7 М.
How to use Github Actions with Google's Workload Identity Federation
11:33
Docker Builds with GitHub Actions and Artifact Registry (GCP)
8:34
Nodematic Tutorials
Рет қаралды 8 М.
GitHub Packages.. Containers in a GitHub repo?
15:28
DevOps Journey
Рет қаралды 18 М.
GitHub Actions Tutorial - Basic Concepts and CI/CD Pipeline with Docker
32:31
TechWorld with Nana
Рет қаралды 1,6 МЛН
The intro to Docker I wish I had when I started
18:27
typecraft
Рет қаралды 296 М.
How to build and push a docker image | Google Cloud Artifact Registry
11:22
Lazy days…
00:24
Anwar Jibawi
Рет қаралды 9 МЛН