From 8a6145431a1a4f5727933357ed94912efed302c8 Mon Sep 17 00:00:00 2001 From: Thomas Bonnin <233326+TBonnin@users.noreply.github.com> Date: Fri, 10 Jan 2025 12:09:15 -0500 Subject: [PATCH] chore: temporarely adding a github action deploy_fleet in order to be able to test fleet migration and deployment without having to deploy all runners --- .github/workflows/deploy.yaml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/.github/workflows/deploy.yaml b/.github/workflows/deploy.yaml index 69d9085ee3e..c15aa840f11 100644 --- a/.github/workflows/deploy.yaml +++ b/.github/workflows/deploy.yaml @@ -24,6 +24,7 @@ on: - persist - orchestrator - connect_ui + - fleet jobs: deploy_server: @@ -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