Skip to content

Latest commit

 

History

History

deploy-env-action


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.

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