added github action

هذا الالتزام موجود في:
2026-05-06 15:06:39 +03:00
الأصل 7b2f8840cb
التزام 1d90a99003
5 ملفات معدلة مع 67 إضافات و1 حذوفات

19
.github/workflows/main.yaml مباع Normal file
عرض الملف

@@ -0,0 +1,19 @@
on:
push:
pull_request:
jobs:
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

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

@@ -0,0 +1,29 @@
# Build stage
FROM node:18-alpine AS build
# Set working directory
WORKDIR /app
# Copy package files
COPY package*.json ./
# Install dependencies
RUN npm install
# Copy source code
COPY . .
# Build the app
RUN npm run build
# Production stage
FROM nginx:alpine
# Copy built app from build stage
COPY --from=build /app/build /usr/share/nginx/html
# Expose port 80
EXPOSE 80
# Start nginx
CMD ["nginx", "-g", "daemon off;"]

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

@@ -0,0 +1,17 @@
{
"id": "a978f1cb-2075-4132-b91b-13d29f1b06e5",
"name": "First-CICD",
"projectId": "c94a536a-9f46-488f-9a83-cdd52abddde4",
"ports": [
{
"expose": true,
"number": 80
}
],
"publicAccess": {
"enabled": true,
"domain": "auto"
},
"resourceTier": "t2",
"dockerFileName": "Dockerfile"
}

1
nvm Submodule

تمت إضافة الوحدة الفرعية nvm في 083bb94f25

عرض الملف

@@ -156,7 +156,7 @@ const LoginForm = () => {
{/* عنوان تسجيل الدخول */}
<Typography variant="h4" fontWeight={700} sx={{ fontSize: { xs: '1.8rem', sm: '2rem', md: '2.2rem' } }}>
Login
Welcome you canLogin
</Typography>
<Typography variant="body2" color="text.secondary" fontWeight={500} sx={{ pb: 1 }}>