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

Поділитися
Вставка
  • Опубліковано 21 жов 2024

КОМЕНТАРІ • 55

  • @AntonPutra
    @AntonPutra  Рік тому +1

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

  • @AntonPutra
    @AntonPutra  Рік тому +1

    👉 How to Manage Secrets in Terraform - ua-cam.com/video/3N0tGKwvBdA/v-deo.html
    👉 Terraform Tips & Tricks - ua-cam.com/video/7S94oUTy2z4/v-deo.html
    👉 ArgoCD Tutorial - ua-cam.com/video/zGndgdGa1Tc/v-deo.html

  • @alexleung842
    @alexleung842 2 роки тому +5

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

  • @genyklemberg
    @genyklemberg 9 місяців тому +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  9 місяців тому

      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.

  • @RoniVituli
    @RoniVituli Рік тому +1

    Thank you very much! very helpful! 😋

  • @josenildoalves
    @josenildoalves 2 роки тому +2

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

  • @AmitKumar-hm4gx
    @AmitKumar-hm4gx 7 місяців тому

    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 Рік тому +1

    that was very helpfull, thanks

  • @jameeghouri775
    @jameeghouri775 2 роки тому +1

    very helping. thanks

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

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

  • @achala1100
    @achala1100 2 роки тому +1

    Excellent, l have pushed to artifact

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

  • @bronxed3666
    @bronxed3666 2 роки тому +1

    excellent content.
    thank you

  • @m_sen8710
    @m_sen8710 Рік тому +1

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

    • @AntonPutra
      @AntonPutra  Рік тому +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 Рік тому

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

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

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

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

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

  • @abdurrazaq8127
    @abdurrazaq8127 3 роки тому +1

    Thank you

  • @mklueh
    @mklueh 2 роки тому

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

  • @christopherrobin5796
    @christopherrobin5796 5 місяців тому

    then how to deploy to GCR?

    • @AntonPutra
      @AntonPutra  5 місяців тому

      you mean GKE? well i have few tutorials on that topic

  • @pradeepg4498
    @pradeepg4498 7 місяців тому

    How to use git lfs in gcloud

    • @AntonPutra
      @AntonPutra  7 місяців тому

      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) - ua-cam.com/video/XTcos7s0iDo/v-deo.html

    • @novanova2906
      @novanova2906 2 роки тому

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