A sample Angular project to be deployed to Google Cloud App Engine Flexible Environment using Cloud Build.
-
Clone/fork the repository.
-
Edit
cloudbuild.yaml
and remove the--version=$SHORT_SHA
option. It will work only for Cloud Build triggered builds. -
Then:
gcloud auth login gcloud config set project <YOUR-PROJECT-ID> gcloud builds submit --config cloudbuild.yaml .
Continuous Delivery in Google Cloud Platform — Cloud Build with App Engine @ Google Cloud Community / Medium
- The
app.yaml
file cannot be stored in the root folder due to an App Engine Flexible Environment requirement, so I created agae-flex
folder to store it. - Since the
gae-flex
folder was created, I decided to put all flex environment stuff there. - The
main.py
andrequirements.txt
files are required to setup a basic web server (Flask is not the best option to serve static content, but helps to let things clear and running in this tutorial). - All files generated by
npm build...
command are copied togae-flex/static
before deploying the application to App Engine. Please refer tocloudbuild.yaml
for details.
Please make sure to take a moment and read the Code of Conduct.
Please report bugs and suggest features via the GitHub Issues.
Before opening an issue, search the tracker for possible duplicates. If you find a duplicate, please add a comment saying that you encountered the problem as well.
Please make sure to read the Contributing Guide before making a pull request.