diff --git a/.ghaymah.json b/.ghaymah.json index 196784a..a77c9a4 100644 --- a/.ghaymah.json +++ b/.ghaymah.json @@ -1,11 +1,11 @@ { "id": "a978f1cb-2075-4132-b91b-13d29f1b06e4", - "name": "bin", + "name": "First-CICD", "projectId": "f6e4060b-3d3a-4767-bf09-b5da31e9277c", "ports": [ { "expose": true, - "number": 8080 + "number": 80 } ], "publicAccess": { diff --git a/Dockerfile b/Dockerfile index c561dde..74a7a75 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,4 +2,4 @@ FROM nginx:latest COPY index.html /usr/share/nginx/html -EXPOSE 8080 +EXPOSE 80 diff --git a/README.md b/README.md index e69de29..ec71a00 100644 --- a/README.md +++ b/README.md @@ -0,0 +1,59 @@ +# 🚀 Ghaymah Cloud Deployment Guide using GitHub Actions + +## đŸ–Ĩī¸ On Your Terminal + +1. **Install Ghaymah CLI** + ```bash + curl -sSl https://cli.ghaymah.systems/install.sh | bash + ``` + +2. **Navigate to Ghaymah Binary Directory & Create Project Files** + ```bash + cd /ghaymah/bin + ``` + Create the Project files: + - `Dockerfile` + - `index.html` + +3. **Set Project Name** + ```bash + gy r c p --set .name="project name" + ``` + +4. **Initialize Project with Your Ghaymah Project ID** + ```bash + gy r a init -p project-id + ``` + +5. **Copy Configuration File** + - Copy the generated `.ghaymah.json` file to your repository. + +6. **Your Repository Structure Should Look Like:** + ``` + ├── .github/workflows/cicd.yaml + ├── index.html + ├── .ghaymah.json + ├── Dockerfile + ├── README.md + ``` + +--- + +## đŸŒŠī¸ On Your GitPasha Account + +1. **Add Repository Secrets** + - `DOCKERHUB_USERNAME` + - `DOCKERHUB_PASSWORD` + - `GHAYMAH_EMAIL` + - `GHAYMAH_PASSWORD` + +2. **Push Your Repository** + ```bash + git add . + git commit -m "Initial commit for Ghaymah deployment" + git push origin main + ``` + +--- + +✅ **Now your project is ready for automatic deployment via Ghaymah Cloud !** diff --git a/index.html b/index.html index 6975faf..a8498f6 100644 --- a/index.html +++ b/index.html @@ -1 +1 @@ -Welcome to my first CICD \ No newline at end of file +Welcome to my first GitHub Actions CI/CD on Ghaymah Cloud \ No newline at end of file