Skip to content

Latest commit

 

History

History
34 lines (27 loc) · 1.29 KB

README.md

File metadata and controls

34 lines (27 loc) · 1.29 KB

GitHub Actions Wrapper for flyctl with Output

This GitHub Action is a Wrapper for the flyctl Command Line Tool, similar to flyctl-actions with the crucial difference that this Action provides a output using ${{steps.ID.outputs.stdout}}.

This repository has been mainly used to learn about the creation of custom GitHub Actions. Any adivce is appreciated.

Usage

name: Deploy to Fly
on: [push]
jobs:
  deploy:
    name: Deploy proxy
    runs-on: ubuntu-latest
    steps:
      # This step checks out a copy of your repository.
      - uses: actions/checkout@v2
      # This step runs `flyctl deploy` and saves the output in `${{steps.ID.flyctl_out.stdout}}`.
      - uses: JabobKrauskopf/flyctl-actions-with-output@main
        id: flyctl_out
        env:
          FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}
        with:
          args: "postgres create --region fra --vm-size shared-cpu-1x --initial-cluster-size 1 --volume-size 1"
      - name: Echo Output of previouse step
        run: echo ${{steps.flyctl_out.outputs.stdout}}

See the flyctl documentation for more information on flyctl

Credit

Credit goes to flyctl-actions