Compare commits

...

7 الالتزامات

المؤلف SHA1 الرسالة التاريخ
36e7c3fd45 Inject id and projectId from secrets in deploy workflow 2026-06-17 00:05:32 +03:00
dcddcb5d13 remove unnecessary -i flag
فشلت بعض الفحوصات
/ deploy (push) Failing after 2m48s
2026-06-14 11:09:49 +03:00
8da88c9a23 Add generic values for id and projectId to be set in gitpasha secrets 2026-06-14 10:33:48 +03:00
9012f91ad6 Add push trigger on main branch to ghaymah workflow
فشلت بعض الفحوصات
/ deploy (push) Failing after 2m10s
2026-06-14 09:32:12 +03:00
e0da8b99f3 trying to replace sqlite with postqresql with safety using gitpasha secrets
Reviewed-on: #3
2026-06-14 05:24:50 +00:00
fb3b55bb35 Create environment object with SQL_CONN secret and inject it into config.yml.example
فشلت بعض الفحوصات
Go CI / Lint (pull_request) Has been cancelled
Go CI / Check (pull_request) Has been cancelled
Go CI / Test (mysql, 1.25, mysql:8, ubuntu-latest, 3306:3306) (pull_request) Has been cancelled
Go CI / Test (postgres, 1.25, postgres:16, ubuntu-latest, 5432:5432) (pull_request) Has been cancelled
Go CI / Test (sqlite, 1.25, macOS-latest) (pull_request) Has been cancelled
Go CI / Test (sqlite, 1.25, ubuntu-latest) (pull_request) Has been cancelled
Go CI / Build (1.25, macOS-latest) (pull_request) Has been cancelled
Go CI / Build (1.25, ubuntu-latest) (pull_request) Has been cancelled
Go CI / Build (1.25, windows-latest) (pull_request) Has been cancelled
2026-06-09 00:25:19 +03:00
7243d743eb Changed COPY destination from config.yml to config.yml.example 2026-06-09 00:23:08 +03:00
3 ملفات معدلة مع 20 إضافات و5 حذوفات

عرض الملف

@@ -1,7 +1,7 @@
{ {
"id": "0de03ccc-efb5-44f5-9a5e-47827cc89233", "id": "ID",
"name": "maqtaa", "name": "maqtaa",
"projectId": "17b67804-4f4f-442a-a79f-c44273c6dcdf", "projectId": "PROJECT_ID",
"ports": [ "ports": [
{ {
"expose": true, "expose": true,

عرض الملف

@@ -1,15 +1,30 @@
on: on:
push:
branches:
- main
jobs: jobs:
deploy: deploy:
steps: steps:
- name: checkout code - name: checkout code
uses: actions/checkout@v5.0.0 uses: actions/checkout@v5.0.0
- name: install ghaymah cli - name: install ghaymah cli
run: curl -sSl https://cli.ghaymah.systems/install.sh | bash run: curl -sSl https://cli.ghaymah.systems/install.sh | bash
- name: login to ghaymah - name: login to ghaymah
run: $HOME/ghaymah/bin/gy auth login --email "${{secrets.GHAYMAH_EMAIL}}" --password "${{secrets.GHAYMAH_PW}}" run: $HOME/ghaymah/bin/gy auth login --email "${{secrets.GHAYMAH_EMAIL}}" --password "${{secrets.GHAYMAH_PW}}"
- name: Create env object with secrets
run: |
jq '.env = {
"SQL_CONN": "${{ secrets.SQL_CONN }}"
} | .id = "${{ secrets.ID }}" | .projectId = "${{ secrets.PROJECT_ID }}"' .ghaymah.json > /tmp/ghaymah.json && mv /tmp/ghaymah.json .ghaymah.json
- name: Inject SQL_CONN into config.yml.example
env:
SQL_CONN: ${{ secrets.SQL_CONN }}
run: |
sed "s|^db-uri: .*|db-uri: ${SQL_CONN}|" config.yml.example > /tmp/config.yml.example && mv /tmp/config.yml.example config.yml.example
- name: deploy - name: deploy
run: $HOME/ghaymah/bin/gy resource app launch run: $HOME/ghaymah/bin/gy resource app launch

عرض الملف

@@ -60,7 +60,7 @@ RUN addgroup -S opengist && \
WORKDIR /app/opengist WORKDIR /app/opengist
COPY --from=build --chown=opengist:opengist /opengist/config.yml /config.yml COPY --from=build --chown=opengist:opengist /opengist/config.yml.example /config.yml
COPY --from=build --chown=opengist:opengist /opengist/opengist . COPY --from=build --chown=opengist:opengist /opengist/opengist .
COPY --from=build --chown=opengist:opengist /opengist/docker ./docker COPY --from=build --chown=opengist:opengist /opengist/docker ./docker