Compare commits

...

10 الالتزامات

المؤلف SHA1 الرسالة التاريخ
ahmedgamalyousef
8c36d1acbe Updating Files
نجحت جميع الفحوصات
/ build_and_push_image (push) Successful in 21s
/ deploy (push) Successful in 12s
2025-10-09 23:26:57 +03:00
ahmedgamalyousef
93c2563079 Updating .ghaymah.json File
نجحت جميع الفحوصات
/ build_and_push_image (push) Successful in 19s
/ deploy (push) Successful in 52s
2025-10-09 22:39:21 +03:00
ahmedgamalyousef
ceaab4c295 Updating DockerFile & .ghaymah.json File 2025-10-09 22:38:58 +03:00
ahmedgamalyousef
9cd30418d7 Updating .ghaymah.json File
نجحت جميع الفحوصات
/ deploy (push) Successful in 1m31s
/ build_and_push_image (push) Successful in 17s
2025-10-09 22:35:27 +03:00
ahmedgamalyousef
faf5ce2a88 Updating .ghaymah.json File
فشلت بعض الفحوصات
/ build_and_push_image (push) Successful in 17s
/ deploy (push) Failing after 8s
2025-10-09 22:32:54 +03:00
ahmedgamalyousef
96a299456b Updating CICD Workflow
فشلت بعض الفحوصات
/ build_and_push_image (push) Successful in 28s
/ deploy (push) Failing after 7s
2025-10-09 22:22:53 +03:00
ahmedgamalyousef
41c39623b4 Adding index.html File
فشلت بعض الفحوصات
/ deploy (push) Has been skipped
/ build_and_push_image (push) Failing after 18s
2025-10-09 22:21:16 +03:00
ahmedgamalyousef
2ec3731f1c Uppdating CICD Workflow
فشلت بعض الفحوصات
/ deploy (push) Has been skipped
/ build_and_push_image (push) Failing after 16s
2025-10-09 22:15:34 +03:00
ahmedgamalyousef
9bb1a85944 Adding Dockerfile & .ghaymah.json file
نجحت جميع الفحوصات
my first workflow on GitPasha / my-first-job (push) Successful in 3s
2025-10-09 22:13:28 +03:00
ahmedgamalyousef
ccc7dc7970 Creating .gitignore File 2025-10-07 22:18:21 +03:00
6 ملفات معدلة مع 113 إضافات و11 حذوفات

17
.ghaymah.json Normal file
عرض الملف

@@ -0,0 +1,17 @@
{
"id": "a978f1cb-2075-4132-b91b-13d29f1b06e4",
"name": "First-CICD",
"projectId": "f6e4060b-3d3a-4767-bf09-b5da31e9277c",
"ports": [
{
"expose": true,
"number": 80
}
],
"publicAccess": {
"enabled": true,
"domain": "auto"
},
"resourceTier": "t1",
"dockerFileName": "Dockerfile"
}

عرض الملف

@@ -1,17 +1,36 @@
name: my first workflow on GitPasha
on:
push:
branches: [ main ]
pull_request:
jobs:
my-first-job:
build_and_push_image:
steps:
- name: say hello
run: echo "Hello World"
- name: checkout code
uses: actions/checkout@v5.0.0
- name: create file
run: touch jemy.log
- name: login to dockerhub
uses: docker/login-action@v3.6.0
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: list files
run: ls -la
- name: Build and push
uses: docker/build-push-action@v6
with:
context: .
push: true
tags: ahmedgamalyousef/firstcicd:latest
deploy:
needs: build_and_push_image
steps:
- name: checkout code
uses: actions/checkout@v5.0.0
- name: install ghaymah cli
run: curl -sSl https://cli.ghaymah.systems/install.sh | bash
- name: login to ghaymah
run: $HOME/ghaymah/bin/gy auth login --email "${{secrets.GHAYMAH_EMAIL}}" --password "${{secrets.GHAYMAH_PW}}"
- name: deploy
run: $HOME/ghaymah/bin/gy resource app launch

1
.gitignore مباع Normal file
عرض الملف

@@ -0,0 +1 @@
.history

5
Dockerfile Normal file
عرض الملف

@@ -0,0 +1,5 @@
FROM nginx:latest
COPY index.html /usr/share/nginx/html
EXPOSE 80

عرض الملف

@@ -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 !**

1
index.html Normal file
عرض الملف

@@ -0,0 +1 @@
Welcome to my first GitHub Actions CI/CD on Ghaymah Cloud