diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml new file mode 100644 index 0000000..6ac9a29 --- /dev/null +++ b/.github/workflows/main.yaml @@ -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 diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..3f67a89 --- /dev/null +++ b/Dockerfile @@ -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;"] \ No newline at end of file diff --git a/ghaymah.json b/ghaymah.json new file mode 100644 index 0000000..213d289 --- /dev/null +++ b/ghaymah.json @@ -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" +} \ No newline at end of file diff --git a/nvm b/nvm new file mode 160000 index 0000000..083bb94 --- /dev/null +++ b/nvm @@ -0,0 +1 @@ +Subproject commit 083bb94f2565141eb9383c2cfed6a934ae818acb diff --git a/src/components/Authentication/SignUp_In/LoginForm.js b/src/components/Authentication/SignUp_In/LoginForm.js index ca9faf7..2b3b4cc 100644 --- a/src/components/Authentication/SignUp_In/LoginForm.js +++ b/src/components/Authentication/SignUp_In/LoginForm.js @@ -156,7 +156,7 @@ const LoginForm = () => { {/* عنوان تسجيل الدخول */} - Login + Welcome you canLogin