Skip to content

Commit

Permalink
Recommend pinning to specific versions of flyctl
Browse files Browse the repository at this point in the history
  • Loading branch information
jsierles committed Feb 17, 2023
1 parent 67ddda2 commit 5e2c29d
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,14 @@
# GitHub Actions for flyctl

This action wraps the flyctl CLI tool to allow deploying and managing fly apps. We recommend using the `setup-flyctl` action which runs outside of Docker for speed and flexibility.
## Usage for deployment
## Usage for Deployment

> <picture>
> <source media="(prefers-color-scheme: light)" srcset="https://github.com/Mqxx/GitHub-Markdown/blob/main/blockquotes/badge/light-theme/tip.svg">
> <img alt="Tip" src="https://github.com/Mqxx/GitHub-Markdown/blob/main/blockquotes/badge/dark-theme/tip.svg">
> </picture><br>
> For production deployments, we recommend [pinning to a specific version](#pin-to-a-specific-fly-version) of flyctl to avoid changes in `flyctl` behavior affecting your deployment.

```yaml
name: Deploy to Fly
Expand All @@ -19,14 +26,14 @@ jobs:
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}
```
To use a specific version of `flyctl`:
### Pin to a specific version of `flyctl`:

```yaml
- uses: superfly/flyctl-actions/setup-flyctl@master
with:
version: 0.0.308
```
### Run one-off scripts
### Running one-off scripts

```yaml
name: Run on Fly
Expand Down

0 comments on commit 5e2c29d

Please sign in to comment.