Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/userbradley/actions-fly

GitHub action to build a docker image and deploy it to Fly
https://github.com/userbradley/actions-fly

Last synced: 28 days ago
JSON representation

GitHub action to build a docker image and deploy it to Fly

Awesome Lists containing this project

README

        

# GitHub Action: Fly Build and Deploy

Builds a docker image and deploys it on fly

## Quickstart

```yaml
name: Build and Deploy
on:
push:
branches:
- main
jobs:
site:
runs-on: ubuntu-latest
name: Build and Deploy
steps:
- name: Git Clone
uses: actions/checkout@v4
- name: Build and deploy
uses: userbradley/[email protected]
with:
flyToken: ${{ secrets.FLY_ACCESS_TOKEN_DEV }}
```
## Inputs

| Name | Description | Required | Default Value |
|------|-------------|----------|---------------|
| `flyToken` | Fly application token | `true` | `Null` |
| `configFile` | Name of the Config File to deploy with | `false` | `fly.toml` |
| `dockerfileName` | Name of the Dockerfile to build from | `false` | `Dockerfile` |

## Examples

### Full Example

```yaml
name: Build and Deploy
on:
push:
branches:
- main
jobs:
site:
runs-on: ubuntu-latest
name: Build and Deploy
steps:
- name: Git Clone
uses: actions/checkout@v4
- name: Build and deploy
uses: userbradley/[email protected]
with:
# Set this to your account or application token
flyToken: ${{ secrets.FLY_ACCESS_TOKEN_DEV }}
# name of the config file in the Repository for the application
configFile: "dev.toml"
# Name of the Dockerfile in the Repo.
dockerfileName: "dev.Dockerfile"
```

---
Built with ❤️