Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/userbradley/actions-fly
- Owner: userbradley
- Created: 2023-07-16T02:12:52.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-03-08T22:28:28.000Z (10 months ago)
- Last Synced: 2024-11-17T20:52:03.563Z (about 1 month ago)
- Size: 14.6 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
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 ❤️