Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deploy to fly #3

Merged
merged 1 commit into from
Apr 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# flyctl launch added from .gitignore
**/node_modules
**/package-lock.json
**/.direnv
**/.envrc
**/result
**/seed.json
fly.toml
18 changes: 18 additions & 0 deletions .github/workflows/fly.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Fly Deploy
on:
push:
branches:
- main
- deploy
jobs:
deploy:
name: Deploy app
runs-on: ubuntu-latest
concurrency: deploy-group # optional: ensure only one action runs at a time
environment: production
steps:
- uses: actions/checkout@v4
- uses: superfly/flyctl-actions/setup-flyctl@master
- run: flyctl deploy --remote-only
env:
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}
2 changes: 1 addition & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
in
rec {
# `nix develop`
devShell = pkgs.mkShell { buildInputs = [ pkgs.go_1_21 ]; };
devShell = pkgs.mkShell { buildInputs = [ pkgs.go_1_21 pkgs.flyctl ]; };

# `nix build`
packages = with pkgs; {
Expand Down
14 changes: 14 additions & 0 deletions fly.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# fly.toml app configuration file generated for golinkds on 2024-04-17T21:54:33-04:00
#
# See https://fly.io/docs/reference/configuration/ for information about how to use this file.
#

app = 'golinkds'
primary_region = 'bos'

[build]

[[vm]]
memory = '1gb'
cpu_kind = 'shared'
cpus = 1
Loading