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

แชร์
ฝัง
  • เผยแพร่เมื่อ 5 ก.ย. 2024

ความคิดเห็น • 53

  • @AntonPutra
    @AntonPutra  11 หลายเดือนก่อน +2

    🔴 - To support my channel, I’d like to offer Mentorship/On-the-Job Support/Consulting - me@antonputra.com

  • @alexleung842
    @alexleung842 2 ปีที่แล้ว +5

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

  • @AntonPutra
    @AntonPutra  ปีที่แล้ว +1

    👉 How to Manage Secrets in Terraform - th-cam.com/video/3N0tGKwvBdA/w-d-xo.html
    👉 Terraform Tips & Tricks - th-cam.com/video/7S94oUTy2z4/w-d-xo.html
    👉 ArgoCD Tutorial - th-cam.com/video/zGndgdGa1Tc/w-d-xo.html

  • @genyklemberg
    @genyklemberg 8 หลายเดือนก่อน +1

    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 2 ปีที่แล้ว +1

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

  • @josenildoalves
    @josenildoalves 2 ปีที่แล้ว +2

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

    • @AntonPutra
      @AntonPutra  2 ปีที่แล้ว +1

      Glad it was helpful!

  • @user-ks2mu6cy4n
    @user-ks2mu6cy4n 11 หลายเดือนก่อน +1

    Thank you very much! very helpful! 😋

    • @AntonPutra
      @AntonPutra  11 หลายเดือนก่อน +1

      Thanks Roni!

  • @AmitKumar-hm4gx
    @AmitKumar-hm4gx 6 หลายเดือนก่อน

    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

  • @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

  • @Buddha609
    @Buddha609 ปีที่แล้ว +1

    that was very helpfull, thanks

  • @jameeghouri775
    @jameeghouri775 ปีที่แล้ว +1

    very helping. thanks

  • @achala1100
    @achala1100 2 ปีที่แล้ว +1

    Excellent, l have pushed to artifact

  • @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!

  • @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?

  • @fourirakbar5745
    @fourirakbar5745 2 ปีที่แล้ว +1

    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

  • @diegobloomalert929
    @diegobloomalert929 2 ปีที่แล้ว +1

    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

  • @bronxed3666
    @bronxed3666 2 ปีที่แล้ว +1

    excellent content.
    thank you

    • @AntonPutra
      @AntonPutra  2 ปีที่แล้ว

      Much appreciated!

  • @abdurrazaq8127
    @abdurrazaq8127 2 ปีที่แล้ว +1

    Thank you

  • @m_sen8710
    @m_sen8710 11 หลายเดือนก่อน +1

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

    • @AntonPutra
      @AntonPutra  11 หลายเดือนก่อน +1

      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 11 หลายเดือนก่อน

      @@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

  • @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?

  • @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 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 ปีที่แล้ว +1

      How to Create GKE Cluster Using TERRAFORM from Scratch? (GCP Shared VPC | Terraform GCP Kubernetes) - th-cam.com/video/XTcos7s0iDo/w-d-xo.html

    • @novanova2906
      @novanova2906 2 ปีที่แล้ว

      @@AntonPutra how to Deploy the Docker image to the GKE cluster? used kustomize?