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

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

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
@alleung42
@alleung42 2 жыл бұрын
Pretty sure you just saved me 1 to 2 whole days' work. Subscribed!
@AntonPutra
@AntonPutra 2 жыл бұрын
Thanks!
@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
@genyklemberg
@genyklemberg Жыл бұрын
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 Жыл бұрын
Cool, thanks. Use Artifact Registry, I think GCR will be deprecated soon.
@radeksmola1898
@radeksmola1898 2 жыл бұрын
This helps me with creation of service account for Artifact Registry. Thank you.
@AntonPutra
@AntonPutra 2 жыл бұрын
welcome!
@josenildoalves
@josenildoalves 3 жыл бұрын
Excellent content. Congratulations on the knowledge transferred. Thank you very much.
@AntonPutra
@AntonPutra 3 жыл бұрын
Glad it was helpful!
@RoniVituli
@RoniVituli Жыл бұрын
Thank you very much! very helpful! 😋
@AntonPutra
@AntonPutra Жыл бұрын
Thanks Roni!
@AmitKumar-hm4gx
@AmitKumar-hm4gx 11 ай бұрын
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
@Buddha609
@Buddha609 Жыл бұрын
that was very helpfull, thanks
@AntonPutra
@AntonPutra Жыл бұрын
Glad it helped
@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 🙂
@jameeghouri775
@jameeghouri775 2 жыл бұрын
very helping. thanks
@AntonPutra
@AntonPutra 2 жыл бұрын
Thanks jamee!
@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
@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
@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
@bronxed3666
@bronxed3666 3 жыл бұрын
excellent content. thank you
@AntonPutra
@AntonPutra 3 жыл бұрын
Much appreciated!
@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
@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
@achala1100
@achala1100 2 жыл бұрын
Excellent, l have pushed to artifact
@AntonPutra
@AntonPutra 2 жыл бұрын
Thanks!
@sashameltser7374
@sashameltser7374 3 жыл бұрын
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!
@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?
@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
@christopherrobin5796
@christopherrobin5796 8 ай бұрын
then how to deploy to GCR?
@AntonPutra
@AntonPutra 8 ай бұрын
you mean GKE? well i have few tutorials on that topic
@abdurrazaq8127
@abdurrazaq8127 3 жыл бұрын
Thank you
@AntonPutra
@AntonPutra 3 жыл бұрын
You're welcome
@pradeepg4498
@pradeepg4498 10 ай бұрын
How to use git lfs in gcloud
@AntonPutra
@AntonPutra 10 ай бұрын
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
@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?
Don’t Choose The Wrong Box 😱
00:41
Topper Guild
Рет қаралды 62 МЛН
Quando eu quero Sushi (sem desperdiçar) 🍣
00:26
Los Wagners
Рет қаралды 15 МЛН
Sigma Kid Mistake #funny #sigma
00:17
CRAZY GREAPA
Рет қаралды 30 МЛН
We Attempted The Impossible 😱
00:54
Topper Guild
Рет қаралды 56 МЛН
5 Ways to DevOps-ify your App - Github Actions Tutorial
12:12
Fireship
Рет қаралды 712 М.
How to build and push a docker image | Google Cloud Artifact Registry
11:22
How to Create Your Own GitHub Actions?
14:23
Anton Putra
Рет қаралды 7 М.
GitHub Actions Tutorial - Basic Concepts and CI/CD Pipeline with Docker
32:31
TechWorld with Nana
Рет қаралды 1,6 МЛН
How GitHub's Database Self-Destructed in 43 Seconds
12:04
Kevin Fang
Рет қаралды 1 МЛН
ArgoCD Tutorial for Beginners | GitOps CD for Kubernetes
47:53
TechWorld with Nana
Рет қаралды 689 М.
Don’t Choose The Wrong Box 😱
00:41
Topper Guild
Рет қаралды 62 МЛН