Skip to content

Latest commit

 

History

History
69 lines (52 loc) · 2.28 KB

File metadata and controls

69 lines (52 loc) · 2.28 KB


codeware sthlm logo

Fly Environment Action

GitHub action that analyzes which environment to deploy your Fly.io applications to.

@cdwr/deploy-env-action npm   MIT

Description

This action will analyze which environment to deploy your Fly.io applications to.

It is intended to be used in a previous job before the Fly Deployment Action.

Important

This action is now superseded by Nx Pre-deploy Action, which provides environment detection plus affected apps analysis and multi-tenant support in a unified package.

This action remains available if you only need environment detection without the full pre-deployment analysis.

Usage

Using the action is currently limited to this repository since the package isn't deployed.

Tip

The action will also provide DEPLOY_ENV which can be used in other actions in the job

jobs:
  deploy-env:
    runs-on: ubuntu-latest

    outputs:
      environment: ${{ steps.environment.outputs.environment }}

    steps:
      # Checkout, install dependencies and tools...
      # Build 'deploy-env-action' package...

      - name: Determine environment
        id: environment
        uses: ./packages/deploy-env-action

  fly-deployment:
    needs: deploy-env
    runs-on: ubuntu-latest

    environment:
      name: ${{ needs.deploy-env.outputs.environment }}
      url: https://${{ steps.deployment.outputs.hostname }}

    steps:
      # Checkout, install dependencies and tools...
      # Build 'nx-fly-deployment-action' package...

      - name: Run Deployment to Fly
        uses: ./packages/nx-fly-deployment-action