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
فشلت بعض الفحوصات
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
هذا الالتزام موجود في:
14
.github/workflows/ghaymah.yml
مباع
14
.github/workflows/ghaymah.yml
مباع
@@ -4,12 +4,24 @@ jobs :
|
|||||||
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 }}"
|
||||||
|
}' .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 -i "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
|
||||||
|
|
||||||
|
|||||||
المرجع في مشكلة جديدة
حظر مستخدم