forked from Giveth/impact-graph
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #105 from GeneralMagicio/AddFundingPotExecutionToG…
…itHubActions Add funding pot execution to github actions
- Loading branch information
Showing
1 changed file
with
8 additions
and
5 deletions.
There are no files selected for viewing
13 changes: 8 additions & 5 deletions
13
.github/workflows/staging-inverter-sync.yml → ...rkflows/staging-funding-pot-execution.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,26 @@ | ||
name: Run Inverter Sync Script | ||
name: run-funding-pot-service | ||
|
||
on: | ||
schedule: | ||
- cron: '0 0 * * 1' # Runs at midnight every Monday | ||
# schedule: | ||
# - cron: '0 0 * * 1' # Runs at midnight every Monday | ||
workflow_dispatch: # This allows manual triggering | ||
|
||
jobs: | ||
run-script: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: SSH into Server and Run Inverter Sync Script | ||
- name: SSH into Server and Run Funding Pot Service | ||
uses: appleboy/[email protected] | ||
env: | ||
DELEGATE_PK_FOR_FUNDING_POT: ${{ secrets.DELEGATE_PK_FOR_FUNDING_POT }} | ||
ANKR_API_KEY_FOR_FUNDING_POT: ${{ secrets.ANKR_API_KEY_FOR_FUNDING_POT }} | ||
with: | ||
host: ${{ secrets.STAGING_HOST }} | ||
username: ${{ secrets.STAGING_USERNAME }} | ||
key: ${{ secrets.STAGING_PRIVATE_KEY }} | ||
port: ${{ secrets.SSH_PORT }} | ||
script: | | ||
cd QAcc-BE | ||
docker compose -f docker-compose-staging.yml exec qacc-be npm run sync:inverter:production | ||
docker compose -f docker-compose-staging.yml exec qacc-be npm run execute:inverter:production | ||
docker compose -f docker-compose-staging.yml logs qacc-be |