- Setting up Google Cloud Project (skip if you already have a GCP Project)
- Go to Google Cloud and click on Get Started for FREE.
- Login using your gmail account, choose your country, accept terms and conditions and click Continue.
- In the next step, fill your details, like account type, Name, Address, credit card details, tax information, etc. If you have old Gmail account and all the information is already there it would take it and you might not have to fill all the details.
- After filling all the details click on Start my free trial.
- Google will setup your cloud account and in few seconds your Google Cloud Platform account will be ready to start deploying applications on it. It will look like below:
- Creating Service Account and store credentials in Github
-
Creating Service Account and provide owner access
- Go to Navigation Menu(Top left Corner) > IAM & Admin > Service Accounts
- Click on Create Service Account
- Under Service Account Details provide service account name and description of your choice and click on Create
- Under Service Account Permissions select Project > Owner Role and click on Continue
- Keep User Access Section unchanged and click on Done
- On Service Account Page click on Actions hamburger menu of Service Account you just created and Click on Create Key
- Select JSON option and Click on Create. A JSON file will get downloaded on your local system, save it we will need it later*
-
Add Github Secrets
-
Go to repo that you forked from https://github.com/SKAUL05/cc-python-gae
-
Go to Actions & Click I understand my workflows, go ahead & enable them
-
Go to Settings > Secrets
-
Click on New Secret and add Name as PROJECT_ID and value as Project ID of your GCP Project and click on Add Secret
-
Again click on New Secret and add Name as ACCOUNT_KEY and value as *contents of json file that you downloaded and click on Add Secret
-