Deploy PHP App using GCP Cloud Build

Create a GCP Project

https://cloud.google.com/resource-manager/docs/creating-managing-projects#creating_a_project


Setup Deploy 

https://cloud.google.com/community/tutorials/run-laravel-on-appengine-flexible#deploy


Migrate Deployment To Container Registry

Preparation

Most likely we need to use custom runtime.

If you renamed your 'app.yaml', may be you need to duplicate it to 'app.yaml' because it require to have 'app.yaml' at this stage.

Then, run this command,
`gcloud beta app gen-config --custom`

This command will do work on the 'app.yaml'

It will generate Dockerfile and update app.yaml

Setup Build Trigger

  1. Cloud Build > Enable Service > add Trigger
  2. create cloudbuild.yaml


Enable App Engine Admin API

  1. go to Marketplace
  2. find 'Google App Engine Admin API', enable it

Upgrade Service Account Role

  1. find service account with role 'Cloud Build Service Account'
  2. add role 'App Engine Admin'


Deploy

Make a commit to the repo branch and push. That's all!

Comments

  1. This comment has been removed by the author.

    ReplyDelete
  2. Nice post, i hope really gather more information about php, thanks for sharing your ideas.
    PHP Online Training
    PHP Online Course
    PHP Online Training in chennai

    ReplyDelete
  3. It is truly a well-researched content and excellent wording. I got so engaged in this material that I couldn’t wait to read. I am impressed with your work and skill. Thanks. Read more info about google cloud vps

    ReplyDelete
  4. I found decent information in your article. I am impressed with how nicely you described this subject, It is a gainful article for us. Thanks for share it.Saudi Arabia Vps

    ReplyDelete
  5. Great job for publishing such a nice article. Your article isn’t only useful but it is additionally really informative. Thank you because you have been willing to share information with us. Read more info about microsoft support houston tx

    ReplyDelete
  6. I got some wonderful knowledge from this post about GCP Cloud, as it contains some useful details which is good for knowledge. Thanks for posting it. USA. it services.data center malaysia

    ReplyDelete

Post a Comment

Popular Posts