From 8f9abab1b8577dfe7bae266a2c2ec916760c649e Mon Sep 17 00:00:00 2001 From: Ahmed Hesham Date: Tue, 7 Oct 2025 17:44:20 +0300 Subject: [PATCH] add ghaymah.json --- .ghaymah.json | 20 ++++++++++++++++++++ .github/workflows/ci.yaml | 12 ++++++++++-- 2 files changed, 30 insertions(+), 2 deletions(-) create mode 100644 .ghaymah.json diff --git a/.ghaymah.json b/.ghaymah.json new file mode 100644 index 0000000..4616d82 --- /dev/null +++ b/.ghaymah.json @@ -0,0 +1,20 @@ +{ + "id": "eb1b607d-2f98-465c-a288-5523387c69ea", + "name": "ghaymahci-test", + "projectId": "02b6641b-1c1e-47de-ac1d-2f2a8e62c1ea", + "ports": [ + { + "expose": true, + "number": 80 + } + ], + "publicAccess": { + "enabled": true, + "domain": "auto" + }, + "resourceTier": "t1", + "container": { + "image": "ahmedhesham301/nginx:latest", + "pullSecretName": "" + } +} \ No newline at end of file diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 9bd1a30..baf0b32 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -21,8 +21,16 @@ jobs: push: true tags: ahmedhesham301/nginx:latest - ci: - needs: deploy_to_ghaymah + 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: gy auth login --email "${{secrets.GHAYMAH_EMAIL}}" --password "${{secrets.GHAYMAH_PW}}" + + - name: deploy + run: gy resource app launch \ No newline at end of file