diff --git a/README.md b/README.md index 992a4dbb..9d14d8e5 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,9 @@ # Travian Clone - Browser Game +

+ Vallorium Logo +

+ I had this project in my mind since a long time. I've always been a huge fan of the popular browser game called Travian. Travian is a browser based MMOG where you compete with thousands of other players by buuilding up your village, building, ressources, fields, troops in order to have the largest global population accross the server. The goal of the project is to have exactly the same logic as the original, but with some UI enhancements, as well as being cross-platform. @@ -54,3 +58,50 @@ Backend - Artifact Registry: This will store your Docker image, making it accessible for Cloud Run deployment. - Cloud Run: This service will host your Dockerized Python backend. - Cloud Build Permissions: Enable Cloud Build to deploy images from Artifact Registry to Cloud Run. + +gcloud iam service-accounts keys create ~/YOUR_SA_KEY.json \ + --iam-account="${SERVICE_ACCOUNT_EMAIL}" + +GITHUB_ACTIONS_SA_EMAIL="github-actions-sa@YOUR_PROJECT_ID.iam.gserviceaccount.com" + +# Replace `YOUR_PROJECT_ID` with your actual project ID + +PROJECT_ID="travian-3919" + +# Grant Owner role for complete access (or assign specific roles as needed) + +gcloud projects add-iam-policy-binding $PROJECT_ID \ + --member="serviceAccount:${GITHUB_ACTIONS_SA_EMAIL}" \ + --role="roles/owner" + +# Additional roles can be added individually if you prefer more granular permissions: + +# For Cloud Run admin: + +gcloud projects add-iam-policy-binding $PROJECT_ID \ + --member="serviceAccount:${GITHUB_ACTIONS_SA_EMAIL}" \ + --role="roles/run.admin" + +# For Artifact Registry access: + +gcloud projects add-iam-policy-binding $PROJECT_ID \ + --member="serviceAccount:${GITHUB_ACTIONS_SA_EMAIL}" \ + --role="roles/artifactregistry.writer" + +# For Storage access: + +gcloud projects add-iam-policy-binding $PROJECT_ID \ + --member="serviceAccount:${GITHUB_ACTIONS_SA_EMAIL}" \ + --role="roles/storage.admin" + +# for billing + +gcloud beta billing accounts add-iam-policy-binding BILLING_ACCOUNT_ID \ + --member="serviceAccount:GITHUB_ACTIONS_SA_EMAIL" \ + --role="roles/billing.user" + +gcloud beta billing accounts add-iam-policy-binding 017990-8215A3-BC71A3 \ + --member="serviceAccount:github-actions-sa@travian-3919.iam.gserviceaccount.com" \ + --role="roles/billing.user" + +gcloud services enable cloudresourcemanager.googleapis.com --project=471713920051 diff --git a/docs/img/Screenshot 2024-11-03 at 21.54.58.png b/docs/img/Screenshot 2024-11-03 at 21.54.58.png new file mode 100644 index 00000000..f5ff5df9 Binary files /dev/null and b/docs/img/Screenshot 2024-11-03 at 21.54.58.png differ diff --git a/docs/img/vallorium_logo_transparant.png b/docs/img/vallorium_logo_transparant.png new file mode 100644 index 00000000..e78b9cc2 Binary files /dev/null and b/docs/img/vallorium_logo_transparant.png differ