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

  Рет қаралды 32,030

Anton Putra

Anton Putra

Күн бұрын

Пікірлер: 53
@AntonPutra
@AntonPutra 11 ай бұрын
🔴 - To support my channel, I’d like to offer Mentorship/On-the-Job Support/Consulting - me@antonputra.com
@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
@alexleung842
@alexleung842 2 жыл бұрын
Pretty sure you just saved me 1 to 2 whole days' work. Subscribed!
@AntonPutra
@AntonPutra 2 жыл бұрын
Thanks!
@genyklemberg
@genyklemberg 7 ай бұрын
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 7 ай бұрын
Cool, thanks. Use Artifact Registry, I think GCR will be deprecated soon.
@radeksmola1898
@radeksmola1898 Жыл бұрын
This helps me with creation of service account for Artifact Registry. Thank you.
@AntonPutra
@AntonPutra Жыл бұрын
welcome!
@josenildoalves
@josenildoalves 2 жыл бұрын
Excellent content. Congratulations on the knowledge transferred. Thank you very much.
@AntonPutra
@AntonPutra 2 жыл бұрын
Glad it was helpful!
@user-ks2mu6cy4n
@user-ks2mu6cy4n 11 ай бұрын
Thank you very much! very helpful! 😋
@AntonPutra
@AntonPutra 11 ай бұрын
Thanks Roni!
@Buddha609
@Buddha609 Жыл бұрын
that was very helpfull, thanks
@AntonPutra
@AntonPutra Жыл бұрын
Glad it helped
@jameeghouri775
@jameeghouri775 Жыл бұрын
very helping. thanks
@AntonPutra
@AntonPutra Жыл бұрын
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
@bronxed3666
@bronxed3666 2 жыл бұрын
excellent content. thank you
@AntonPutra
@AntonPutra 2 жыл бұрын
Much appreciated!
@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
@AmitKumar-hm4gx
@AmitKumar-hm4gx 5 ай бұрын
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
@achala1100
@achala1100 2 жыл бұрын
Excellent, l have pushed to artifact
@AntonPutra
@AntonPutra 2 жыл бұрын
Thanks!
@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!
@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
@abdurrazaq8127
@abdurrazaq8127 2 жыл бұрын
Thank you
@AntonPutra
@AntonPutra 2 жыл бұрын
You're welcome
@diegobloomalert929
@diegobloomalert929 2 жыл бұрын
Thank you Anton! There is a way to use docker layer caching for speed up this process on larger docker images?
@AntonPutra
@AntonPutra 2 жыл бұрын
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
@m_sen8710
@m_sen8710 10 ай бұрын
Hi, at 2:10, what would the "production ready" image look like ?
@AntonPutra
@AntonPutra 10 ай бұрын
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 10 ай бұрын
@@AntonPutra oh ok! Thank you 🙂
@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
@mklueh
@mklueh Жыл бұрын
It's now not recommended anymore to use key auth, but Workload Identity Federation instead
@AntonPutra
@AntonPutra Жыл бұрын
Noted
@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
@user-zu6zj6vi5l
@user-zu6zj6vi5l Жыл бұрын
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?
@christopherrobin5796
@christopherrobin5796 3 ай бұрын
then how to deploy to GCR?
@AntonPutra
@AntonPutra 3 ай бұрын
you mean GKE? well i have few tutorials on that topic
@pradeepg4498
@pradeepg4498 5 ай бұрын
How to use git lfs in gcloud
@AntonPutra
@AntonPutra 5 ай бұрын
I've never used it myself, why not to use object store? But i found one implementation for gcp - github.com/vitalibo/git-lfs/
@novanova2906
@novanova2906 2 жыл бұрын
how to deploy GKE?
@AntonPutra
@AntonPutra 2 жыл бұрын
How to Create GKE Cluster Using TERRAFORM from Scratch? (GCP Shared VPC | Terraform GCP Kubernetes) - kzbin.info/www/bejne/joXGoKZtqJWcetE
@novanova2906
@novanova2906 2 жыл бұрын
@@AntonPutra how to Deploy the Docker image to the GKE cluster? used kustomize?
Docker Builds with GitHub Actions and Artifact Registry (GCP)
8:34
Nodematic Tutorials
Рет қаралды 7 М.
Running With Bigger And Bigger Feastables
00:17
MrBeast
Рет қаралды 129 МЛН
Look at two different videos 😁 @karina-kola
00:11
Andrey Grechka
Рет қаралды 14 МЛН
Revolutionary Uses for Leftover Styrofoam
00:19
Делай сам
Рет қаралды 6 МЛН
Ouch.. 🤕
00:30
Celine & Michiel
Рет қаралды 48 МЛН
How to use Github Actions with Google's Workload Identity Federation
11:33
Cloud Run QuickStart - Docker to Serverless
7:50
Fireship
Рет қаралды 183 М.
Using docker in unusual ways
12:58
Dreams of Code
Рет қаралды 439 М.
How to build and push a docker image | Google Cloud Artifact Registry
11:22
Do NOT Learn Kubernetes Without Knowing These Concepts...
13:01
Travis Media
Рет қаралды 270 М.
Manually Deploy to Cloud Run - Updated for Artifact Registry
11:04
ScriptBytes
Рет қаралды 4,8 М.
The cloud is over-engineered and overpriced (no music)
14:39
Tom Delalande
Рет қаралды 552 М.
you need to learn Docker RIGHT NOW!! // Docker Containers 101
23:19
NetworkChuck
Рет қаралды 2,6 МЛН
Смартфоны миллиардеров 🤑
0:53
serg1us
Рет қаралды 615 М.
На что способен ваш компьютер?
0:34