Skip to content

Commit

Permalink
chore: temporarely adding a github action deploy_fleet
Browse files Browse the repository at this point in the history
in order to be able to test fleet migration and deployment without
having to deploy all runners
  • Loading branch information
TBonnin committed Jan 10, 2025
1 parent 5f2ba17 commit 8a61454
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ on:
- persist
- orchestrator
- connect_ui
- fleet

jobs:
deploy_server:
Expand Down Expand Up @@ -95,6 +96,20 @@ jobs:
--header "content-type: application/json"\
--data "{ \"commitHash\": \"${{ github.sha }}\" }"
deploy_fleet:
if: inputs.service == 'fleet'
runs-on: ubuntu-latest
steps:
- name: Fleet rollout
env:
INTERNAL_API_KEY: ${{ inputs.stage == 'production' && secrets.PROD_INTERNAL_API_KEY || secrets.STAGING_INTERNAL_API_KEY }}
run: |
NANGO_API_HOSTNAME=${{ fromJson('{ "production": "api.nango.dev", "staging": "api-staging.nango.dev" }')[inputs.stage] }}
curl -sS --fail-with-body --request POST "https://$NANGO_API_HOSTNAME/internal/fleet/nango_runners/rollout" \
--header "authorization: Bearer $INTERNAL_API_KEY"\
--header "content-type: application/json"\
--data "{ \"commitHash\": \"${{ github.sha }}\" }"
deploy_persist:
if: inputs.service == 'persist'
runs-on: ubuntu-latest
Expand Down

0 comments on commit 8a61454

Please sign in to comment.