trying to replace sqlite with postqresql with safety using gitpasha secrets #3
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
|
||||||
|
|
||||||
|
|||||||
المرجع في مشكلة جديدة
حظر مستخدم