فشلت بعض الفحوصات
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
28 أسطر
923 B
YAML
28 أسطر
923 B
YAML
on:
|
|
jobs :
|
|
deploy:
|
|
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: 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
|
|
run: $HOME/ghaymah/bin/gy resource app launch
|